フィルターのクリア

adding a title to a figure - by a loop

2 ビュー (過去 30 日間)
alex
alex 2011 年 11 月 26 日
コメント済み: K R 2017 年 5 月 18 日
I am trying to run with a loop where i have a parameter X when X = {'asd','asdf','sfdf','sd',....} and i want in every loop run to add to the title of the figure it's name.. I tried title(X(i),'dsfsdaasdsadf..') or tile('X(i)','sdfdsvsccvsd...') and nothing seems to work the end result that i am looking for is a bunch of figures that have the title i wanted by the order in X.. how can I do that?

採用された回答

Chandra Kurniawan
Chandra Kurniawan 2011 年 11 月 26 日
Something like this??
clear all; clc;
X = {'asd','asdf','sfdf','sd'};
for i = 1 : length(X)
figure('name',X{i},'numbertitle','off');
end
  4 件のコメント
Suene
Suene 2015 年 8 月 17 日
many thanks for sharing!
K R
K R 2017 年 5 月 18 日
Same code will it work for surf instead of normal 2d

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by