(newbie) spectral derivative

4 次查看(过去 30 天)
Jack Silver
Jack Silver 2014-4-10
I have data that form a scalar field on a 2D grid, evenly spaced. There is no particular periodicity patern in my data.
I want to calculate the value of the gradient at each grid point with a spectral method in MATLAB. Using simple FFT does not seem to work, especially near the borders (probably because the data are not periodic). I have ears about DCT, but I am not sure.
I would appreciate advice on the best way to do this.
  3 个评论
Sean de Wolski
Sean de Wolski 2014-4-10
Why not just use gradient?
Jack Silver
Jack Silver 2014-4-10
Thanks, for your answer, but my understanding is that the "gradient" function is based on finite difference, which is not accurate enough for my needs.
I would definitly prefer a spectral solution.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by