Prev: "ConnectionCallback" Bug in Simulink?
Next: Conversion of symbolic expression to c code using ccode
From: Lukas on 26 Jul 2010 10:18 Hi folks! I wonder if there is a fast method to perform a sinc interpolation of a 4D array along one dimension or do I have to loop through the three dimensions and perform 1d interplations... ??? Many thanks in advane for your help. LS
From: Matt J on 26 Jul 2010 10:52 "Lukas " <lukas.scheef(a)ukb.uni-bonn.de> wrote in message <i2k5es$85h$1(a)fred.mathworks.com>... > Hi folks! > > I wonder if there is a fast method to perform a sinc interpolation of a 4D array along one dimension or do I have to loop through the three dimensions and perform 1d interplations... ??? ========= Sinc interpolation is equivalent to fft-based upsampling, i.e. take FFT, zero-pad, then take IFFT. You could implement this yourself or use tools on the FEX such as http://www.mathworks.com/matlabcentral/fileexchange/4658-updownsample Sinc interpolation is also often approximated efficiently by cubic B-spline interpolation. The following provides tools and examples for doing this. The examples are for 1D and 2D data, but the extension to 4D is pretty straightforward. http://www.mathworks.com/matlabcentral/fileexchange/26292-regular-control-point-interpolation-matrix-with-boundary-conditions
|
Pages: 1 Prev: "ConnectionCallback" Bug in Simulink? Next: Conversion of symbolic expression to c code using ccode |