Plotting two(function) curve in same figure?how?

30 ビュー (過去 30 日間)
Mary Jon
Mary Jon 2013 年 11 月 15 日
コメント済み: Md Nafiul Islam 2017 年 12 月 21 日
can Iam plotting two(function) curve in one figure?how? y1=function y2=function x=1:1:40
plot(x,y1) plot(x,y2)
in same figure? how?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 15 日
編集済み: Azzi Abdelmalek 2013 年 11 月 15 日
plot(x,y1)
hold on
plot(x,y2)
%or
plot(x,y1,x,y2)
%or
plotyy(x,y1,x,y2)
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 11 月 15 日
編集済み: Azzi Abdelmalek 2013 年 11 月 15 日
figure
hold on
plot(x,y1)
plot(x,y2)
plot(x,y3)
%and so on
hold off
Md Nafiul Islam
Md Nafiul Islam 2017 年 12 月 21 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by