Oct 23, 2007 #1 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?
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?
Oct 24, 2007 #2 MikeyP Aerospace Joined Mar 5, 2002 Messages 940 Location GB B = unique(A) M -- Dr Michael F Platten Upvote 0 Downvote