which plotting function can give me this curve
조회 수: 2 (최근 30일)
이전 댓글 표시

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

댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!