which plotting function can give me this curve
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192631/image.png)
I want to plot a similar graph, so should I use plot()? or their is other function can give better results
0 个评论
采纳的回答
Stephan
2018-10-26
Hi,
To see all capabilities of plotting in Matlab check this:
Best regards
Stephan
0 个评论
更多回答(1 个)
Stephen23
2018-10-26
>> 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,'-')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192847/image.png)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!