p3_24.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 25 行
M
25 行
% 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 + =
减小字号Ctrl + -
显示快捷键?