Does anyone know how to create graphics of the same size?

1 回表示 (過去 30 日間)
Pul
Pul 2021 年 12 月 7 日
コメント済み: Pul 2021 年 12 月 8 日
Hello everyone,
I should create graphics of the same size and save them in pdf format.
How can I do it?
Thank you!

回答 (1 件)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2021 年 12 月 7 日
Hello
You can use the command "print"
https://uk.mathworks.com/help/matlab/ref/print.html?searchHighlight=print&s_tid=srchtitle_print_1
from which you can control the output. E.g.
print('mygraph','-dpdf')
and you can control resolution, size and many other parameters.
  3 件のコメント
Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2021 年 12 月 8 日
Did you have a figure open? Try the following:
figure
plot([1:10],sin(1:10))
print('mygraph.pdf','-dpdf')
Pul
Pul 2021 年 12 月 8 日
Yes, when it's open, I got a pdf but I can't decide the size or at least, I don't know what I should do!

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by