Plot two curve of different program in same graphs

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);

추가 답변 (0개)

카테고리

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

제품

질문:

2021년 4월 6일

댓글:

2021년 4월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by