필터 지우기
필터 지우기

how to set the figure width

조회 수: 9 (최근 30일)
Lizan
Lizan 2013년 4월 30일
I am trying to create a figure of width and height of 3 inches from an existing saved figure. How can I do this?
I would like to save this figure as a .png of the same size. Can I save this as png of this (3x3 inches) size.
I have also noticed that some parts of the labels disappears when saving it to .png. Why is this so? How do I prevent this?
Many thanks,

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 4월 30일
편집: Azzi Abdelmalek 2013년 4월 30일
figure
set(gcf,'paperunits','inches')
set(gcf,'position',[0 0 3 3])
saveas(gcf,'fig1.png')
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2013년 4월 30일
What do you mean?
Azzi Abdelmalek
Azzi Abdelmalek 2013년 4월 30일
편집: Azzi Abdelmalek 2013년 4월 30일
name='fig_choice.png'
saveas(gcf,name)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by