I'm not sure exactly what you're after here, but note that the gpuArray implementation of fft2 automatically applies to "pages" of a 3-dimensional array, like this:
x = ones(2, 2, 3, "gpuArray") .* reshape(1:3, 1, 1, 3)
fft2(x)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!