MATLAB: How can do many loops

loopsMATLAB

I wrote this script
clc
clear
for ro=0.01:0.01:0.5
clear('alpha')
for alpha=0.25:0.25:4
clear('beta')
for beta=0.25:0.25:4
disp([ro', alpha',beta'])
end
when I run it and the result shows up it doesn't start with initial values which is (0.25,0.25) and take diffrent one each time i run the script thanks

Best Answer

ro=0.01:0.01:0.5
alpha=0.25:0.25:4
beta=0.25:0.25:4
for i = 1:numel(ro)
for l = 1:numel(alpha)
for k = 1:numel(beta)
disp([ro(i)', alpha(l)',beta(k)'])
end
end
end