Hi Srikanth,
You can use the “fft2” function to simultaneously transform the data from the time-space domain to the frequency-spatial order domain. The function takes input as a multidimensional array X and returns the two-dimensional Fourier transform of a matrix X using a fast Fourier transform algorithm, which is equivalent to computing fft(fft(X).').'
For more information regarding the “fft2” function you can check the following documentation - https://www.mathworks.com/help/matlab/ref/fft2.html