Partial derivative of a matrix
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
John
le 14 Jan 2015
Modifié(e) : Mohammad Abouali
le 14 Jan 2015
I have a matrix V, say 3-by-3. How can I compute dV/dx and dV/dy separately? dV/dx is partial derivative wrt x (along the columns), same for y. I use gradient function, but it returns a matrix of same size as V. Any help or idea? Thanks.
0 commentaires
Réponse acceptée
Mohammad Abouali
le 14 Jan 2015
Modifié(e) : Mohammad Abouali
le 14 Jan 2015
[Vx,Vy,Vz] = gradient(V,h);
[Vx,Vy,Vz] = gradient(V,h1,h2,h3);
If your domain is more complicated or you are looking for higher order operator lookup Finite Difference schemes or Finite Volume ones.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Hydraulics and Pneumatics 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!