%% Nonuniform Sample Points
% Create a 3-D signal X sampled at unevenly spaced points t in each dimension. Compute the nonuniform fast Fourier transform Y.

t = [1:10 11:2:29]';
x = t;
y = t';
z = reshape(t,[1 1 20]);
X = cos(2*pi*0.01*x) + sin(2*pi*0.02*y) + cos(2*pi*0.03*z);
Y = nufftn(X,{t,t,t});

% Copyright 2019 The MathWorks, Inc.