why is inv of matlab not working like numeric::inverse of mupad?
Afficher commentaires plus anciens
S = Sylvester matrix

ARK = Vector with 12 elements

Theta = numeric::inverse(S)*ARK
THIS works fine!
But in matlab the equation
Theta = inv(S)*ARK or Theta = S\ARK
doesn't work! Has anybody an idea why?
Thank you very much
4 commentaires
Steven Lord
le 22 Avr 2019
In this context, what does "doesn't work" mean? Does it throw an error (and if so what is the full text of the error, everything displayed in red text?) Does it issue a warning (and if so post the full warning message, everything in orange?) Does it take a long time to run? Does it give you a different result than you expected?
How did you build S and ARK, does it contain numbers or symbolic variables/expressions?
Walter Roberson
le 24 Avr 2019
What is class(S) ? What is rank(S) ? Your reference to numeric::inverse suggests that S might be numeric.
David Wilson
le 24 Avr 2019
If this is from a control application, then make sure you don have any common factors in your A and B polynomials. If you do, then S is known to be singular.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numeric Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!