Hi Naheeda!
I tried reproducing the issue on my side. The arrays ‘t’ and ‘x’ should be of the same dimension here ‘t’ is of dimensions 1 * 11 and ‘x’ is of dimensions 1 * 10. So, that must be changed. I am not getting the too many input arguments error as the input arguments for the function phaseNoiseMeasure are correct.
Now running phaseNoiseMeasure will prompt an interpolation error and this is about not having enough sample points to perform the interpolation operation. So, increase the number of sample points. After using the following ‘x’ and ‘t’ the function will work.
x = rand (1,100,'double');
Please refer to the following MATLAB documentation regarding examples on phase noise profile from time domain signal.
For details about ‘linspace’ and ‘rand’ functions refer the following MATLAB documentations
hope this helps,
Thank you!