how legend update with variable

1 visualización (últimos 30 días)
Sun Heat
Sun Heat el 23 de Ag. de 2019
Comentada: Sun Heat el 26 de Ag. de 2019
t=linspace(0.1,1,10)
legend ('0.1','0.2','0.3',......upto '1')
how legend update with variable 't' with there values on graph
  4 comentarios
Bruno Luong
Bruno Luong el 23 de Ag. de 2019
Editada: Bruno Luong el 23 de Ag. de 2019
There is something called ARRAYFUN
legend_txt = arrayfun(@(x)sprintf('%.1f',x),t,'UniformOutput',0)
Sun Heat
Sun Heat el 26 de Ag. de 2019
thanks

Iniciar sesión para comentar.

Respuestas (0)

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!

Translated by