MATLAB: Please help in for loop :(

for loop

for m=1:2
rx=1+2*l*sin(m*b)*m
ry=1+2*l*cos(m*b)*m;
end
plot([1 rx 10],[1 ry 10]);
where l is given I need two value for rx and also for ry I mean that the result should be like this :
rx=0+2*l*sin(1*b)*1
ry=0+2*l*cos(1*b)*1;
rx=0+2*l*sin(2*b)*2
ry=0+2*l*cos(2*b)*2;

Best Answer

Get rid of the for loop. Just do this:
m=1:2
rx=1+2*l*sin(m*b)*m
ry=1+2*l*cos(m*b)*m;