legend
30 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tor Fredrik Hove
el 13 de Oct. de 2011
Respondida: Mav Sam
el 19 de Dic. de 2017
What does string1, string2 and s fourth mean in explanation underneath
is it saved items? or something else?
0 comentarios
Respuesta aceptada
Naz
el 13 de Oct. de 2011
when you do plot something you can specify your 'something' by the legend to know which plot corresponds to which function. try following: t=0:0.1:10;
y1=2*t;
y2=4*t;
plot(t,y1,t,y2);
legend('2*t','4*t');
0 comentarios
Más respuestas (2)
William
el 13 de Oct. de 2011
They are the inputs you want to display in string format
2 comentarios
Mav Sam
el 19 de Dic. de 2017
hi, so I'm plotting functions that depend on a variable 'r' that perhaps changes 10 times, hence r is a variable and its elements can be identified as r(i) How do I include code in a legend argument, such that for 10 curves that are plotted representing 10 diff values of r, the legend displays the corresponding value of r that is being represented by the legend. Thanks for any help Thanks. Sam
0 comentarios
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!