I'm trying to plot sin(x) and sin(2x) and 3x and so on up to sin(nx) all on the same graph. My code right now is as follows.
i = input('Enter a positive whole number: \n');
for z = [1:i]
It's giving me an error saying:
Matrix dimensions must agree.
Error in lab5_exercise2 (line 9)