フィルターのクリア

Saving figure in jpeg

1 回表示 (過去 30 日間)
Francois Piche
Francois Piche 2012 年 1 月 17 日
I am trying to save figure in jpeg format and find myself having to create them full screen to get good rendering. However, I cannot control both figure number and position. How do I get around this restriction? The relevant code lines are shown below.
Thanks,
scrsz = get(0,'ScreenSize');
figure(1,'Position',[1 1 scrsz(3) scrsz(4)]); % generate figure 1 full screen size

採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 17 日
scrsz = get(0,'ScreenSize');
fig = figure(1);
set(fig,'Units','Pixels','Position',[1 1 scrsz(3) scrsz(4)]);

その他の回答 (2 件)

Andrii
Andrii 2012 年 1 月 17 日
You can function imwrite. Syntax:imwrite(nameOfElement,'Filename.jpg')

Image Analyst
Image Analyst 2012 年 1 月 18 日
I believe you can save the figures with whatever resolution you want with export_fig. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by