Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping Array

Status
Not open for further replies.

capverde

Aerospace
Joined
Oct 23, 2007
Messages
1
Location
US
If I have an 8 X1 Array of varying numbers:
A(:,1) = 1,2,3,3,3,3,2,1 . What code would i use to display the range of values, so that the output would be B(:,1) = 1, 2, 3 regardelss of order or if a number is repeated?
 
B = unique(A)

M

--
Dr Michael F Platten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top