index in safe-title
古いコメントを表示
I would like to define my file with the title, so that includes the according index. I tried:
saveas(gcf,'title_t{n}','jpeg')
saveas(gcf,'title', t{n},'jpeg')
Either wont work - is there a way?
Thanks in advance!
採用された回答
その他の回答 (1 件)
KSSV
2021 年 5 月 6 日
saveas(gcf,[title_t{n},'jpeg'])
4 件のコメント
Lukas Netzer
2021 年 5 月 6 日
Walter Roberson
2021 年 5 月 6 日
saveas(gcf,['title_' t{n}],'jpeg'])
Lukas Netzer
2021 年 5 月 6 日
Walter Roberson
2021 年 5 月 6 日
What datatype is t{n} ? If it is numeric then
filename = sprintf('title_%g.jpg', t{n});
saveas(gcf, filename, 'jpeg')
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!