How do we change the size of a figure (graph) to be larger than the default?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, the size of my screen is 1366x768 (width x height). How can I force the graph below (via command line) to use the entire screen instead of a small figure?
w = 0:pi/100:2*pi;
y1 = sin(w)';
h=plot(w,y1);
I thank you in advance for your help
Emerson
댓글 수: 0
채택된 답변
José-Luis
2012년 10월 3일
scrsz = get(0,'ScreenSize');
figure('Position',scrsz);
plot(rand(10,1));
댓글 수: 5
추가 답변 (1개)
Azzi Abdelmalek
2012년 10월 3일
편집: Azzi Abdelmalek
2012년 10월 3일
set(gcf, 'PaperUnits', 'centimeters','PaperPosition', [0 0 15 15])
% you can change paperunits to 'inches' or 'points',...
댓글 수: 2
Azzi Abdelmalek
2012년 10월 3일
편집: Azzi Abdelmalek
2012년 10월 3일
Ok, because it changed it when you save it to an image file (jpg,...)
José Luis's code is fine
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!