How can I give legend to a plot as a series?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
kanyvt
el 8 de Abr. de 2015
Comentada: Kelly Kearney
el 9 de Abr. de 2015
Suppose I have multiple graphs on a plot for a parameter varying from -4 to 0.25 with difference of 0.25 between adjacent values (which is about 18 in number)? Can I say like legend y. where y is a variable varying from -4 to 0.25?
0 comentarios
Respuesta aceptada
Kelly Kearney
el 8 de Abr. de 2015
Example data:
x = 1:10;
h = plot(x, x'*p)
Create legend:
legend(h, cellstr(num2str(p', '%.2f')));
Más respuestas (0)
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!