To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I want code do the following without using for,if let unique_x is a vector
t=1; for v=1:length(z) a1=find(unique_x==z(v)); if isempty(a1) evaluation(t)=z(v); t=t+1; end end
thanks in advance
No products are associated with this question.
I think that you'll want something along the line of the following example:
>> z = [3 5 7] ; >> unique_x = [1 2 7 8 9 3] ; >> evaluation = z(~ismember(z, unique_x)) evaluation = 5