subplot(3,1,3) hold on for m=linspace(0,1000,11) a=linspace(20,220,1000); M=linspace(0,1000,1000); f=M.*a;. % use M plot(M,f) title('Force V/s Mass'); xlabel('mass'); ylabel('Force') end
If you use M instead of m you can notice the difference.
subplot(3,1,3) hold on for m=linspace(0,1000,11) a=linspace(20,220,1000); M=linspace(0,1000,1000); f=M.*a;. % use M plot(M,f) title('Force V/s Mass'); xlabel('mass'); ylabel('Force') end
If you use M instead of m you can notice the difference.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!