From: Zuzana Andrlova on
I would like to ask how to calculate in matlab second partial derivatives d^2f/dx^2 , d^2f/dy^2 , d^2f/dxdy , when f is function of x and y. Then f , x and y are given by 2D matrix of discrete values, derivatives should be the same representation. I was trying to use diff and gradient, but both give me different results, so maybe I used it badly. Thanks Zuzana