which plotting function can give me this curve
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alice Faisal
le 26 Oct 2018
Réponse apportée : Stephen23
le 26 Oct 2018

I want to plot a similar graph, so should I use plot()? or their is other function can give better results
0 commentaires
Réponse acceptée
Stephan
le 26 Oct 2018
Hi,
To see all capabilities of plotting in Matlab check this:
Best regards
Stephan
0 commentaires
Plus de réponses (1)
Stephen23
le 26 Oct 2018
>> x = 0:0.1:2*pi;
>> v = (0:3).';
>> A = sin(x)+v-0.1;
>> B = sin(x)+v+0.1;
>> plot(x,A,'--')
>> set(gca,'NextPlot','add','ColorOrderIndex',1)
>> plot(x,B,'-')

0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!