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

5 ビュー (過去 30 日間)
Ploting graphs using matlab

採用された回答

Mil Shastri
Mil Shastri 2020 年 2 月 19 日
use the 'hold on' command. For example:
t=1:0.1:10
plot(t,sin(t))
hold on;
plot(t,cos(t))
  2 件のコメント
Shewit Weldejewergs
Shewit Weldejewergs 2020 年 2 月 19 日
Thank you so much mr. Mil shastri
Mil Shastri
Mil Shastri 2020 年 3 月 10 日
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 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by