which plotting function can give me this curve
Mostra commenti meno recenti

I want to plot a similar graph, so should I use plot()? or their is other function can give better results
Risposta accettata
Più risposte (1)
Stephen23
il 26 Ott 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,'-')

Categorie
Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!