Hello,
私の母国語は日本語ではないので、この質問には英語で答えてみます。ご理解いただきありがとうございます。
"ifft" function calculates the inverse fourier transform (amplitude) based on algorithm mentioned in the below Mathworks documentation:
Consider,
X = ifft(Y,n)
as argument n changes the length of input argument by padding trailing zeros, resulting value, X, also changes based on the algorithm. Therefore, amplitude changes depending on the value of agrument n (i.e. Inverse transform length).
Please refer to the following section of MathWorks documentation for more information on the input arguments of "ifft" function: