Hi, I have
a=[1 2; 3 4; 5 6];
for m=1:4
if m<=2 b=a([2 3],:) else c=a([1 2],:) end
end
I want to keep the answer for every loop, for example, I want to know the ouptut when m=1, m=2, m=3 and m=4 respectively. How am i going to do this?
Thanks.
Best Answer