Figure automatically scales by 2

1 visualización (últimos 30 días)
xiaojuezi el 6 de Abr. de 2020
Comentada: xiaojuezi el 11 de Abr. de 2020
Hi, I set my figure as below:
However, the popped figure window has resolution 1024x1024. When I try to get the result as a matrix:
F = getframe (gcf,[0,0,512,512]);
[img, ~] = frame2im (F);
I would like to get img with resolution 512x512x3, but I get its value as 1024x1024x3.
Is there anyway to solve this problem?
  4 comentarios
xiaojuezi el 11 de Abr. de 2020
Thank you all ! I think it is a problem of macos, when explicitly setting '-r72' or '-r96' for different os, the problem is solved.

Iniciar sesión para comentar.

Respuestas (0)


Más información sobre Graphics Object Properties en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by