Does anyone know how to create graphics of the same size?
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Hello everyone,
I should create graphics of the same size and save them in pdf format.
How can I do it?
Thank you!
댓글 수: 0
답변 (1개)
  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
      
 2021년 12월 8일
				Did you have a figure open? Try the following:
figure
plot([1:10],sin(1:10))
print('mygraph.pdf','-dpdf')
참고 항목
카테고리
				Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

