フィルターのクリア

Save jpg Files Under Plot Title Name

6 ビュー (過去 30 日間)
Amanda
Amanda 2013 年 5 月 16 日
I have a collection of simple plots with the titles displaying:
Indiana
Montana
Texas
Arizona
I need to take these plots and save the plots as jpg files by their TITLE name in a folder named States:
Folder:States
Indiana.jpg
Montana.jpg
Texas.jpg
Arizona.jpg
Thanks,
Amanda

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 5 月 16 日
doc saveas %or print
doc get
doc sprintf
Gte the string from the title of the axes:
For example:
figure;axes;plot(magic(20));title('Happy Thursday');
saveas(gcf,sprintf('%s.jpg',get(get(gca,'title'),'string')))
  1 件のコメント
Amanda
Amanda 2013 年 5 月 16 日
Thanks a lot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by