フィルターのクリア

Custom Print File Name

5 ビュー (過去 30 日間)
Dima
Dima 2012 年 3 月 13 日
Hello!
I have the following line of code that exports a chart as a PNG file:
print -dpng printname.png -r250
I was wondering if I had a variable called "printaname" - how could I make Matlab save this file with that variable as the name fo the output image file? example if the printaname = AUD23-234 , the file would be AUD23-234.png.
Thanks! Dima

採用された回答

Jan
Jan 2012 年 3 月 13 日
printaname = 'AUD23-234';
print('-dpng', printname, '-r250')
There is an example in help print. It is always a good idea to read the documentation in case of problems.
[EDITED] Link to the help added.
  4 件のコメント
Jan
Jan 2012 年 3 月 13 日
See [EDITED]: I've made "help print" a link to the corresponding section.
Dima
Dima 2012 年 3 月 13 日
thanks) that method worked...

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by