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

 채택된 답변

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

댓글 수: 2

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2020년 2월 19일

댓글:

2020년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by