Does anyone know how to create graphics of the same size?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I should create graphics of the same size and save them in pdf format.
How can I do it?
Thank you!
0 commentaires
Réponses (1)
Constantino Carlos Reyes-Aldasoro
le 7 Déc 2021
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 commentaires
Constantino Carlos Reyes-Aldasoro
le 8 Déc 2021
Did you have a figure open? Try the following:
figure
plot([1:10],sin(1:10))
print('mygraph.pdf','-dpdf')
Voir également
Catégories
En savoir plus sur Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!