I have an array:
a=[1 1 1 1 1 1 1 10 1 1 1 1 1 1 12 1 1 1 1 3];
I want to make a while loop that does the following
enas=0;while a(i)==1 %
enas=enas+1;end
But I don't know how to express it in matlab. Can you help me please?
Image Processing Toolboxwhile loop
a=[1 1 1 1 1 1 1 10 1 1 1 1 1 1 12 1 1 1 1 3];
enas=0;while a(i)==1 %
enas=enas+1;end
Best Answer