How to change 2D plot aspect ratio?

Hi guys, I have to save matlab figures and import them into a LaTex project. I use the following command:
print('-depsc2','-r600',strcat('name_figure','.eps'));
But when I insert the figure in my document the result is the following one:
But I want to obtain something like this:
So, I want to change the image aspect ratio, hopefully by using a default command or similar (a sort of landscape format).
It is possible to obtain this change in the print command?
Or do I have to use another command?

 採用された回答

Giuseppe
Giuseppe 2021 年 3 月 25 日

0 投票

I've solved with the command:
set(gcf,'position',[x0, y0, width, height]);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 3 月 25 日

回答済み:

2021 年 3 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by