Inverting an 8×8 symbolic matrix
I am trying to invert an 8×8 symbolic matrix with 32 symbolic variables in total. However, when running the standard inversion methods with inv() or mldivide(), the program takes a lot of time and ended up crashing all the times I tried to invert this matrix. I tried some workarounds, such as a recursive inversion algorithm using Schur decomposition and other ways of using the fact that I know that the matrix is symmetric, but to no avail. The function has a lot of sines and cosines of these variables, which might also be a problem.
I am looking for ways I can get this matrix inverted, or any further suggestion on how to tackle this problem.
Thanks in advance.
For context: the matrix I am trying to invert is the inertia matrix for a tiltrotor UAV. the 32 parameters consist of 6 state variables and 26 model parameters. My goal with this is to get an analytic expression for the system equations of motion:
With that expression, I intend to obtain an analytic linearization of the system in order to get a linear model , where . With these analytical expressions should be able to easily get A, B matrices for different values of the system parameters and formulate robust linear controllers with polytopic uncertainty.I am trying to invert an 8×8 symbolic matrix with 32 symbolic variables in total. However, when running the standard inversion methods with inv() or mldivide(), the program takes a lot of time and ended up crashing all the times I tried to invert this matrix. I tried some workarounds, such as a recursive inversion algorithm using Schur decomposition and other ways of using the fact that I know that the matrix is symmetric, but to no avail. The function has a lot of sines and cosines of these variables, which might also be a problem.
I am looking for ways I can get this matrix inverted, or any further suggestion on how to tackle this problem.
Thanks in advance.
For context: the matrix I am trying to invert is the inertia matrix for a tiltrotor UAV. the 32 parameters consist of 6 state variables and 26 model parameters. My goal with this is to get an analytic expression for the system equations of motion:
With that expression, I intend to obtain an analytic linearization of the system in order to get a linear model , where . With these analytical expressions should be able to easily get A, B matrices for different values of the system parameters and formulate robust linear controllers with polytopic uncertainty. I am trying to invert an 8×8 symbolic matrix with 32 symbolic variables in total. However, when running the standard inversion methods with inv() or mldivide(), the program takes a lot of time and ended up crashing all the times I tried to invert this matrix. I tried some workarounds, such as a recursive inversion algorithm using Schur decomposition and other ways of using the fact that I know that the matrix is symmetric, but to no avail. The function has a lot of sines and cosines of these variables, which might also be a problem.
I am looking for ways I can get this matrix inverted, or any further suggestion on how to tackle this problem.
Thanks in advance.
For context: the matrix I am trying to invert is the inertia matrix for a tiltrotor UAV. the 32 parameters consist of 6 state variables and 26 model parameters. My goal with this is to get an analytic expression for the system equations of motion:
With that expression, I intend to obtain an analytic linearization of the system in order to get a linear model , where . With these analytical expressions should be able to easily get A, B matrices for different values of the system parameters and formulate robust linear controllers with polytopic uncertainty. symbolic, matrix, inverse MATLAB Answers — New Questions