I'm unable to figure out this error ''too many input arguments"
1 次查看（过去 30 天）
clear all; close all;
rbw = 75e3;
FrOffset = [100e3 300e3 500e3 1e6 3e6 10e6];
PNTarget = [-130 -140 -135 -130 -140 -155];
[PNMeasure] = phaseNoiseMeasure(t,x,rbw,FrOffset,'on','Phase noise',PNTarget,'Type','Time','Histogram','off')
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');
t = linspace (1,2, 100);
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,