MATLAB: What does this code mean? set(gcf, ‘units’,’normalized’,’outerposition’,[0 0 1 1]); graphics What does this code mean? set(gcf, 'units','normalized','outerposition',[0 0 1 1]); Best Answer Set ( set ) the current figure ( gcf ) to have 'Units' be 'normalized' and the 'outerposition', i.e. the actual borders of the figure to be at the bottom left corner (0,0) and span the whole screen (1,1).Of you could just run it :)And look at the doc:doc setdoc figure %click on figure properties Related SolutionsMATLAB: How to get default ‘OuterPosition’ for a figure You almost answered your own Question!This works:figure(3)surf(peaks)op = get(gcf,'OuterPosition')The 'OuterPosition' property is returned in ‘op’. MATLAB: Getting the axis position correctly What changes is the tightinset property and plotboxaspectratio.figure,plot([0 1], [0 1])axis equalAxesHandle=findobj(gcf,'Type','axes');pt1 = get(AxesHandle,{'Position','tightinset','PlotBoxAspectRatio'});pt1{:}axis tightpt2 = get(AxesHandle,{'Position','tightinset','PlotBoxAspectRatio'});pt2{:} Related QuestionHow do i turn a cylinder to face horizontally in matlabIs it possible to get axis size in px units if it is created in normalized unitsHow to make a figure full screenGetpixelposition vs OuterPosition of figureFont size and figure size when printing figure to .epsHow to convert a normailized matlab position vector to a pixel vector
Best Answer