create vector x from 1 to 10 matlb using while loop code example
Example: for matlab
s = 10;
for c = 1:s
%some code
end
%%foreach like
for v = [1 5 8 17]
disp(v)
end
s = 10;
for c = 1:s
%some code
end
%%foreach like
for v = [1 5 8 17]
disp(v)
end