(newbie) spectral derivative

조회 수: 9 (최근 30일)
Jack Silver
Jack Silver 2014년 4월 10일
댓글: 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에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by