www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ResetFormatToDefaultExample.m

    %% Reset Format to Default
% Set the output format to the short engineering format with compact line spacing, and then reset the format to the default.

% Copyright 2015 The MathWorks, Inc.

format shortEng
format compact
x = rand(3)

%%
format
x