the error is in the third line? i want to make a single plot for different values of k
No products are associated with this question.
Direct link to this answer:
k = 1:5;
x = 1:100;
y = k'*log(x);
Direct link to this comment:
you really got what i want but did you find the error in my code ??
see Wayne's answer
x=(1:100); for k=1:5 y(:,k)=k*log(x); end, plot(x,y)
You forgot a semicolon, or comma after end
or better yet:
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test
Opportunities for recent engineering grads.
New to MATLAB?
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries