📄 rowscale.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -