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

📄 ex4_15.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% EX4_15.M  Compute the modal matrix for a matrix
%  
% INPUT:  Matrix A
% OUTPUT: Display of modal matrix, diagonalized matrix Adiag, 
%           expAdiag=exp(Adiag), and expA=exp(A) 
%  Calls function clmodal
%
A=input('Input the matrix A= ')   % Define the matrix
[M,Adiag]=clmodal(A);             % Compute the matrices
fprintf('Modal matrix and diagonalized matrix \n')
M                                 % Display Modal matrix
Adiag                             % Diagonalized matrix
fprintf('Press a key to continue \n')
pause
fprintf('Display of exp(Adiag) and exp(A) \n')
Minv=inv(M);	      % M^-1			
Adiag=Minv*A*M;       %  Form modal equation
expAdiag=expm(Adiag)  %  Display exp(Adiag)
expA=M*expAdiag*Minv  %  Display exp(A)
%
% Note: there are simpler ways to do some of the statements
%    improve the program  

⌨️ 快捷键说明

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