rowscale.m
来自「matlab 在线性代数中的应用 利用matlab实现可以提高对所学知识的理解 」· M 代码 · 共 11 行
M
11 行
function B=rowscale(A,i,c)
% The command rowscale(A,i,c) multiplies
% row i of the matrix A by the scalar c
% and outputs the resulting matrix.
[m,n]=size(A);
if i<1|i>m
error('Index out of range')
end
B=A;
B(i,:)=c*A(i,:);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?