Variable in plot title
3 ビュー (過去 30 日間)
古いコメントを表示
I would like to store a title of a plot as a variable because of loop programming.
The running variable is P = M_f1. M_f1 is a matrix. But I just want to show the actual name (M_f1) with the variable P in the title.
-> title (P)?
Anyone have an idea?
4 件のコメント
採用された回答
Ameer Hamza
2020 年 5 月 28 日
Run this example
titles = {'title1', 'title2', 'title3'};
for i=1:3
figure(i)
plot(rand(1,10));
title(titles{i});
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Title についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!