Partial derivative of a matrix
조회 수: 10 (최근 30일)
이전 댓글 표시
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
채택된 답변
Mohammad Abouali
2015년 1월 14일
편집: Mohammad Abouali
2015년 1월 14일
[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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Hydraulics and Pneumatics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!