Plotting multiple functions in the same graph
Afficher commentaires plus anciens
I want to plot two different functions in a same graph for different values of a parameter.
I tried the following code:
clc
clear all
syms y
t=[1 5];
for i=1:length(t)
U=exp(-y)*sin(t(i));
fplot(U,y,[0,5]); hold on;
U1=exp(-y)*cos(t(i));
fplot(U1,y,[0,5]); hold on;
end
Is that alright?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!