How do we change the size of a figure (graph) to be larger than the default?
14 次查看(过去 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 个评论
采纳的回答
更多回答(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
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!