Plot two curve of different program in same graphs

27 ビュー (過去 30 日間)
Chun Yin Lui
Chun Yin Lui 2021 年 4 月 6 日
コメント済み: Chun Yin Lui 2021 年 4 月 10 日
I have improved the program, I want to compare the difference after the improvement. Can I combine the curve on this two program in same graphs?

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 4 月 6 日
編集済み: KALYAN ACHARJYA 2021 年 4 月 6 日
Call two programs as function, see the following example
Code 1:
function code1(x)
y=exp(x);
plot(y);
hold on;
end
Code 2:
function code2(x)
y=log(x);
plot(y);
end
Main Script:
x=0:0.01:10;
code1(x);
code2(x);
  1 件のコメント
Chun Yin Lui
Chun Yin Lui 2021 年 4 月 10 日
Thank you for your help

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by