how legend update with variable

2 vues (au cours des 30 derniers jours)
Sun Heat
Sun Heat le 23 Août 2019
Commenté : Sun Heat le 26 Août 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 commentaires
Bruno Luong
Bruno Luong le 23 Août 2019
Modifié(e) : Bruno Luong le 23 Août 2019
There is something called ARRAYFUN
legend_txt = arrayfun(@(x)sprintf('%.1f',x),t,'UniformOutput',0)
Sun Heat
Sun Heat le 26 Août 2019
thanks

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by