📄 p3_24.m
字号:
% P3_24.M M-file to reduce the matrix% A=[1 0 7;0 1 5;2 -1 9]% MATLAB does it first and then it is reduced by "hand"%echo on % Monitor each stepA=[1 0 7;0 1 5;2 -1 9]Atst=A; % Save a copy% MATLAB resultsrankA=rank(A)reducdA=rref(A)pause % Strike a key to continue*clear A % Start fresh%% Our solutionA=Atst;A(3,:)=-2*A(1,:)+A(3,:);A % Reduce it and display each stepA(3,:)=A(2,:)+A(3,:);A%% Determine the rank by inspection on screen%% * Add a comment on the display to indicate the results% and the need to strike a key% Try to automate the reduction and then display the M-file rref.M% to see how MATLAB does it. %
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -