[Matlab] fprintf

%s format as a string
%d format with no fractional part (integer format)
%f format as a oating-point value
%e format as a oating-point value in scienti c notation
%g format in the most compact form of either %f or %e
insert newline in output string
insert tab in output string

原文地址:https://www.cnblogs.com/southernduck/p/3729187.html