📄 ex4_15.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 matricesfprintf('Modal matrix and diagonalized matrix \n')M % Display Modal matrixAdiag % Diagonalized matrixfprintf('Press a key to continue \n')pausefprintf('Display of exp(Adiag) and exp(A) \n')Minv=inv(M); % M^-1 Adiag=Minv*A*M; % Form modal equationexpAdiag=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 + -