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 Exchange에서 2-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