I encounter the problem of transforming a shape from the time domain to the frequency domain.
I used the following commands to convert Fourier.
F2 = fftshift(fft(F1));
Please do not doubt the values entered such as 'nt' and 'dt' because all the shapes obtained in the time domain are correct and the only problem is in converting the frequency.
Let me know please.