how legend update with variable

2 ビュー (過去 30 日間)
Sun Heat
Sun Heat 2019 年 8 月 23 日
コメント済み: Sun Heat 2019 年 8 月 26 日
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 件のコメント
Bruno Luong
Bruno Luong 2019 年 8 月 23 日
編集済み: Bruno Luong 2019 年 8 月 23 日
There is something called ARRAYFUN
legend_txt = arrayfun(@(x)sprintf('%.1f',x),t,'UniformOutput',0)
Sun Heat
Sun Heat 2019 年 8 月 26 日
thanks

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by