which plotting function can give me this curve

3 Ansichten (letzte 30 Tage)
Alice Faisal
Alice Faisal am 26 Okt. 2018
Beantwortet: Stephen23 am 26 Okt. 2018
I want to plot a similar graph, so should I use plot()? or their is other function can give better results

Akzeptierte Antwort

Stephan
Stephan am 26 Okt. 2018
Hi,
i think plot is a good choice. You can change line style and color of data to adapt like you wish.
To see all capabilities of plotting in Matlab check this:
Best regards
Stephan

Weitere Antworten (1)

Stephen23
Stephen23 am 26 Okt. 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,'-')

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by