MATLAB: A simple 2-D plot do not work as i intended. (sorry for newbie question)

2-d plot

Here's the code:
———————————————
b2 = 15;
b3 = 100;
Dtheta2 = (100 / 60) * 2 * pi;
theta2 = 0:pi/12:2*pi;
theta3 = asin((b2/b3)*(sin(theta2)));
Dtheta3 = (b2 * cos(theta2) * Dtheta2)/ ( b3 * cos(theta3));
plot (theta2, Dtheta3);
———————————————
Graph should be:
(used x instead of theta2 on wolframalpha)
however in matlab there are only dots on graph (instead of a continous line)
Any help is much appreciated!

Best Answer

Use .* for element-by-element multiplication. The * operator is for matrix multiplication.