can anyone tell whre is the error ?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
diadalina
le 19 Jan 2020
Modifié(e) : Walter Roberson
le 3 Mar 2024 à 18:42
x=-2*pi:0.01:2*pi
%x2=-pi/2:3*pi/25:pi
y=exp(x)
z=sqrt(exp(-x))
figure(3)
plot(x,y,'b','LineWidth',2,x,z,'r','LineWidth',1)
this code doesn't work can anyone tell me why
1 commentaire
VBBV
le 3 Mar 2024 à 9:45
x=-2*pi:0.01:2*pi;
%x2=-pi/2:3*pi/25:pi
y=exp(x);
z=sqrt(exp(-x));
figure(3)
hold on
plot(x,y,'b','LineWidth',2); yyaxis right
plot(x,z,'r','LineWidth',1)
Réponse acceptée
Stephan
le 19 Jan 2020
Modifié(e) : Walter Roberson
le 3 Mar 2024 à 18:42
x=-2*pi:0.01:2*pi;
y=exp(x);
z=sqrt(exp(-x));
figure(3)
p=plot(x,y,'r',x,z,'b');
p(1).LineWidth = 2;
p(2).LineWidth = 1;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!