⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex4_13.m

📁 Advanced Engineering Mathematics using MATLAB by Harman, Dabney, Richert,书中全部源码
💻 M
字号:
% EX4_13.M Compute A^5 by the polynomial equation for the%  matrix A=[1 0 0;0 2 0;0 0 3] in Example 4.13%    A=[1 0 0;0 2 0;0 0 3]         % Test matrixEiga=eig(A)                   % Check the eigenvaluesLampows=[1 1 1; 4 2 1;9 3 1]; % Matrix of eigenvalue powers flam=[1^5 2^5 3^5]';           % Powers of eigenvalues % Coefficients in matrix BB=Lampows\flam;                % Coefficients of expansion%fprintf('Polynomial expansion of A^5=A5')A5=B(1)*A^2 + B(2)*A + B(3)*eye(size(A)) % CheckA5chk=A^5

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -