How would I get an inverse and transfer function of a matrix with variable s?
Show older comments
So I'm trying to write a code that gets the inverse of a 4x4 matrix and then the transfer function for each of the 4 state inputs, the issue is these matrices include the s variable and with higher powers/coefficients. How would I go about implementing the variables into the matrix and subsequently get the transfer function?
I don't even need the code to get the transfer function as that can easily be obtained by hand if the inverse function worked with the variable, so that is the more pressing issue.
Example of what I'm trying to do and what I get:
A = [('s' + 0.06728) -0.02323 0 9.81;0.396 ('s' +1.729) -50 0;-0.0078 0.2431 ('s'+3.192) 0;0 0 -1 's'];
A_Inverse = inv(A)
Error code:
Check for missing argument or incorrect argument data type in call to function 'inv'.
Error in Matrices_Eigen (line 12)
A_Inverse = inv(A)
Accepted Answer
More Answers (0)
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!