
Re: Transform matrix to vector
Posted:
Sep 26, 2013 9:54 AM


"Shooga " <www.ahmed_nehad@hotmail.com> wrote in message news:l214tt$r79$1@newscl01ah.mathworks.com... > Ok, that's clear ... > But If we have a matrix (3000 X 200), how to do it using a loop ? > I have tried, but the results were not right.
You want the unique elements in that matrix?
A = randi([1 100], 3000, 200); uniqueElements = unique(A(:));
Don't use a loop here.
 Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com

