Plot two curve of different program in same graphs

28 vues (au cours des 30 derniers jours)
Chun Yin Lui
Chun Yin Lui le 6 Avr 2021
Commenté : Chun Yin Lui le 10 Avr 2021
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?

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 6 Avr 2021
Modifié(e) : KALYAN ACHARJYA le 6 Avr 2021
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);

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by