How to plot graphs of sine and cosine functions on the same coordinate plane using matlab

 Respuesta aceptada

use the 'hold on' command. For example:
t=1:0.1:10
plot(t,sin(t))
hold on;
plot(t,cos(t))

2 comentarios

Thank you so much mr. Mil shastri
You are very welcome.
In fact, if anyone wants to learn more about plotting, I'd recommend looking at Section 9 on Plotting of the MATLAB onramp https://www.mathworks.com/learn/tutorials/matlab-onramp.html

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Feb. de 2020

Comentada:

el 10 de Mzo. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by