a124.m

来自「matlab算法集 matlab算法集」· M 代码 · 共 17 行

M
17
字号
       %----------------------------------------------------------------
       % Example a1.2.4: Utility Functions       
       %----------------------------------------------------------------
       clc                      % clear command window
       clear                    % clear variables
       randinit (100)           % select random sequence
       fprintf ('Example a1.2.4: Utility Functions\n'); 
       A = randu (3,4,-1,1);
       x = randg (6,1,10,2);
       show ('machine epsilon',eps)
       show ('A',A);
       show ('row sum norm of A',norm(A,inf))
       show ('x',x);
       show ('infinity norm of x',norm(x,inf))
       %----------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?