运行入门 magic函数 magic函数是每行没列相等的魔方矩阵 >> magic(3) ans = 8 1 6 3 5 7 4 9 2 Matlab预定义变量 预定义变量 含义 ans 结果 eps 浮点相对精度 inf/Inf 无穷大 I/j 虚数单位 pi 圆周率 NaN/nan 非数 Nargin 函数输入变量数目,用于函数中 nargout 函数输出变量个数,用于函数组中 realmax 最大正实数 realmin 最小正实数 复数 函数名 函数作用 </