Saving figure in jpeg

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de En. de 2012

0 votos

scrsz = get(0,'ScreenSize');
fig = figure(1);
set(fig,'Units','Pixels','Position',[1 1 scrsz(3) scrsz(4)]);

Más respuestas (2)

Andrii
Andrii el 17 de En. de 2012

0 votos

You can function imwrite. Syntax:imwrite(nameOfElement,'Filename.jpg')

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by