How do we change the size of a figure (graph) to be larger than the default?

Illustration
aadisingh - 2020-09-10T11:56:49+00:00
Question: How do we change the size of a figure (graph) to be larger than the default?

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);

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

scrsz = get(0,'ScreenSize');
figure('Position',scrsz);
plot(rand(10,1));


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!