saveas2.m v1.1 (Sep 2009)

Saves current figure matching its size with specific extension and resolution.
ダウンロード: 2.6K
更新 2009/9/30

ライセンスの表示

This function is a modification of SAVE2PDF by Gabe Hoffmann.

It saves the current (or specified handle's) figure to the given filename (if not given, it displays a gui to introduce it). If the image extension is not valid or 'unknown' it also displays a menu with valid ones.

It's as easy as SAVEAS but with extra inputs (all optionals).

For example, to save the current figure to (defaults) PNG and 150x150 pixels use
>> saveas2('myfigure')
and that's it. Or to 300x300 pixels in JPG:
>> saveas2('myfigure.jpg',300)

Or as 'fig':
>> saveas2('myfigure.fig')

It accepts multiple inputs.

Enjoy it!
(Bugs reports ans suggestions will be very appreciated)

引用

Carlos Adrian Vargas Aguilera (2024). saveas2.m v1.1 (Sep 2009) (https://www.mathworks.com/matlabcentral/fileexchange/25092-saveas2-m-v1-1-sep-2009), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPrinting and Saving についてさらに検索
謝辞

ヒントを得たファイル: save2pdf

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

v1.1 Fixed important bug with '.fig' output.

1.0.0.0