1D Function into 2D Function Interpolation
- by Drazick
Hello.
I have a 1D function which I want to interpolate into 2D function.
I know the function should have "Polar Symmetry".
Hence I use the following code (Matlab Syntax):
Assuming the 1D function is LSF of the length 15.
[x, y] = meshgrid([-7:7]);
r = sqrt(x.^2 + y.^2);
PSF = interp1([-7:7], LSF, r(:)); % Sometimes using 'spline' option, same…