필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Assign dotted lineto individual sets of data on a line graph

조회 수: 1 (최근 30일)
bugatti79
bugatti79 2014년 7월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi Folks,
The following code plots some lines with different colours automatically.
Essentially 'T_Bulk_Calc' and 'T_Oil' contains 5 data sets each to be plotted (10 in total).
I want each to have individual line type, ie dashed, dotted etc.
figure
plot(t,T_Bulk_calc,t,T_Oil)
xlabel( 'Time [sec]'), ylabel( 'Temperature [Celsius]' )
legend( 'T Bulk calc Base Oil','T Oil C2(meas)','Location', 'E' )
Can someone recommend some syntax? Thanks

답변 (1개)

dpb
dpb 2014년 7월 23일
See the last example under
doc plot
for demo of modifying the default line style for automagic cycling. Otherwise, use 'linestyle' property and cycle thru the line handles after using plot

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by