フィルターのクリア

Change output resolution by export_fig

35 ビュー (過去 30 日間)
Nik Rocky
Nik Rocky 2020 年 12 月 2 日
コメント済み: Nik Rocky 2020 年 12 月 3 日
Hello, I'm trying to save my diagrams with png higher resolution, but I can't find a right code.
My output looks so:
export_fig(Full_Plot_Path_Name);
I tried already:export_fig(Full_Plot_Path_Name) -m2;
export_fig(Full_Plot_Path_Name -m2);
export_fig(Full_Plot_Path_Name '-m2');
export_fig(Full_Plot_Path_Name, '-m2');
Its not working, what can i do?
Resolution - by default, export_fig exports bitmaps at screen resolution. However, you may wish to save them at a different resolution. You can do this using either of two options: -m<val>, where is a positive real number, magnifies the figure by the factor for export, e.g. -m2 produces an image double the size (in pixels) of the on screen figure; -r<val>, again where is a positive real number, specifies the output bitmap to have pixels per inch, the dimensions of the figure (in inches) being those of the on screen figure. For example, using:
export_fig test.png -m2.5
Full_Plot_Path_Name =
/home/nik/workspace/QT/Software_2.0_QT/IO/An_Ab_1_3-02/An_Ab_1_3-02_RES_F2/An_Ab_1_3-02_Plt_SNR_-030.png

採用された回答

Nik Rocky
Nik Rocky 2020 年 12 月 2 日
I found it:
export_fig('-m3', Full_Plot_Path_Name)

その他の回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 12 月 2 日
export_fig() must be a customized function. You have to look at its syntax to learn how to specify resolution.
You could use the built-in function printf(). It can specify format and resolution.
  1 件のコメント
Nik Rocky
Nik Rocky 2020 年 12 月 3 日
Hey Fangjun, yes I know, thanks. I read documentation but not found special input rules.
pintf() not alowe me to make some special datatypes/rules.

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

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by