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

📄 ex4_14.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% EX4_14.M  Compute the modal matrix and exp(A) for
%  the matrix A=[4 1;3 2] as in Example 4.14
%
A=[4 1;3 2]          % Define the matrix
[M D]=eig(A)         % M contains eigenvectors
Minv=inv(M);	     % M^-1			
Adiag=Minv*A*M       %  Form modal equation
expAdiag=expm(Adiag)
expA=M*expAdiag*Minv
pause
%
% Check result of the example
%
fprintf('Check result  expA=expAch? \n')
e=exp(1);
expAch=(1/4)*[e+3*e^5 -e+e^5;-3*e+3*e^5 3*e+e^5]
%
%  Execute with echo on or add print statements to improve
%   the output display
%

⌨️ 快捷键说明

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