How do I put a grid and vary the axes scale on a MATLAB graph
grid on for a grid and hold on for vary the axes scale on a MATLAB graph
wait a minute
this is an example for SUPERPOSITION clc clear close A = 10; f = 200; t = 0:0.0001:0.01; theta = 0; w = 360*f; y1 = A*sind (w*t + theta); plot (t,y1) xlabel ('time (ms)'); ylabel ('y'); title ('Sinusoidal Wave') hold on A = 6; f = 500; t = 0:0.0001:0.01; theta = 0; w = 360*f; y2 = A*sind (w*t + theta); plot (t,y2) xlabel ('Time (ms)'); ylabel ('y'); title ('sinusoidal wave') hold on A = 6; f = 1000; t = 0:0.0001:0.01; theta = 0; w = 360*f; y3 = A*sind (w*t + theta); plot (t,y3) xlabel ('time (ms)'); ylabel ('y'); title ('Sinusoidal wave') hold on t = 0:0.0001:0.01; y4 = y1 + y2 + y3; plot (t,y4) xlabel ('time (ms)'); ylabel ('superposition'); title ('Superpotition Graph') grid on
Thanks. I can take it up from here. I appreciate
welcome
Please, have you got any suggestions on future commands profile for MATLAB other than using HELP? Could do with recommendations from you of a good book for 'Starters'.
I have a good book for you
"basic of matlab"
Thanks. Please, the author
These electronic books., if you want, I'll send it to your email
Thanks once again. Please, send as much as possible. My aim is to use MATLAB for Finite element analysis. My email otanochab@yahoo.com
ok welcome..., ^^
I appreciate, while expecting . . . Thanks!
wait a minute..., ^^
sorry my connection is poor..., I'll send it to your email at 9 p.m. (GMT+7)
@Otanocha sorry , my internet quota is limited...,
@Otanocha check your email!
Thank you, I appreciate
ur welcome @Otanocha :)
Join our real-time social learning platform and learn together with your friends!