📄 solution.m
字号:
function x = solution(A,b)
% SOLUTION(A,b) uses the rref of [A,b] to find a solution x
% of Ax = b as one does by hand.
[R,jp] = rref([A,b]);
[m,n] = size(A);
r = length(jp);
if jp(r) == n+1
x = [];
else
x = zeros(n,1);
x(jp) = R(1:r,n+1);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -