Hi, I know I have asked the similar question, I want to write a if statement that compare vectors, like a, b is 3 dimensional vector, however if a<=b returns a 3-dim vector that do the comparison for each entry.
Is there a command just do a whole comparison at once? Thanks.
No products are associated with this question.
Have you tried using the 'or' operator?
if size(a,2)==3 | size(b,2)==3 ... elseif size(a,1)<=size(b,1) ... end
Sorry, you weren't very clear, but I hope some of the above will help.