figure-saveas problem

20 visualizaciones (últimos 30 días)
ariela tsabary
ariela tsabary el 18 de Jun. de 2020
Respondida: ariela tsabary el 23 de Jun. de 2020
Hey,
I saved my picture as follows:
...
fig=figure(i+1)
subplot(1,3,3)
text(0.2,0.5,a,'FontSize',8);
saveas(gcf, ['small pic parametrs ',num2str(i)], 'jpeg');
Unfortunately the saved image is cut in the middle:
I tried other image formats. did not help.
How can I solve this problem?
Thanks.

Respuesta aceptada

ariela tsabary
ariela tsabary el 23 de Jun. de 2020
fig=figure(i+1)
subplot(1,3,3)
text(0.2,0.5,a,'FontSize',12);
set(gcf,'OuterPosition',[0,0,700,700]);
mkdir (dir_address+"\"+date+"\"+TO+"\"+MW+"\"+obj+"\small pics parameters");
new_image_name=dir_address+"\"+date+"\"+TO+"\"+MW+"\"+obj+"\small pics parameters\small pic parameters"+num2str(i);
saveas(gcf,[char(new_image_name)], 'png');

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center 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