フィルターのクリア

Calculate derivative with 3 matrices

1 回表示 (過去 30 日間)
Amund Lindberg
Amund Lindberg 2017 年 4 月 21 日
回答済み: dbmn 2017 年 4 月 21 日
Hello. Given 3 matrices, X, Y and Z, how can I approximate the derivative on Z on a given point (x, y) ?
I'm not supposed to use the gradient function.
Any help highly appreciated.

回答 (1 件)

dbmn
dbmn 2017 年 4 月 21 日
What would you do if you only had 1 Dimension?
You would do (y2-y1)/(x2-x1) with x2 being the nearest x to x1. Do exactly the same with multiple Dimensions.
  • Any given Point (x,y) will be on/within a triangle of neighboring points A, B, C.
  • Find the Points A B C of that triangle and then identify the gradient (hint: normal vector gets you there) in 3D of the area ABC.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by