Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Assign dotted lineto individual sets of data on a line graph

1 visualización (últimos 30 días)
bugatti79
bugatti79 el 23 de Jul. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

dpb
dpb el 23 de Jul. de 2014
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

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by