add.m

来自「这里面有很多有用的东东」· M 代码 · 共 19 行

M
19
字号
function A=add(A)
%ADD	
%Add multiple of one row of a matrix to another row.
%Used in row reduction.
%Calling format: A=add(A)
 
%Copyright Gareth Williams, Stetson University 
%gwilliam@stetson.edu, http://www.stetson.edu/~gwilliam
%Accompanies "Linear Algebra with Applications" by Gareth Williams

disp(' ')
a=input('add the multiple: ');
m=input('          of row: ');
n=input('          to row: ');
A(n,:) = A(n,:) + a*A(m,:);
disp(' ')


⌨️ 快捷键说明

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