Derivative of a vector
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nikolaos Zafirakis
le 15 Avr 2019
Réponse apportée : Walter Roberson
le 15 Avr 2019
I have a vector 3x1 which I multiply by a 3x3 matrix and get a solution (this is all done in a function). I take the resulting 3x1 vector out of the function, then I need to compute the derivative of this vector. Once I find the derivative I can return it to the function.
I tried the diff(x) command but it errors every time does anyone have any suggestions?
4 commentaires
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 15 Avr 2019
Take the derivative of the elements of the vector. Now each row of the matrix gives the mixing coefficients to combine the three derivatives.
Note that this does not apply if the matrix contains the variable that you are taking the derivative with respect to.
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!