which plotting function can give me this curve

I want to plot a similar graph, so should I use plot()? or their is other function can give better results

 採用された回答

Stephan
Stephan 2018 年 10 月 26 日

0 投票

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

その他の回答 (1 件)

Stephen23
Stephen23 2018 年 10 月 26 日

1 投票

>> 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,'-')

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2018 年 10 月 26 日

回答済み:

2018 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by