I was trying to use the dsp.SpectrumAnalyser to do intermodulation measurements.
The data for the control was received from a hardware spectrumanalyzer by a tcpip connection.
This data is in the frequency domain. So I told this to dsp.SpectrumAnalyzer. Data is visualized
fine, but when using the Tool Distortion measurement it comes up with an error message :
"incorrect size for expression 'rbw' expected [1x1] but found [0x0]."
IP3 calculation in the frequency domain is fairly simple and for shure Matlab is not needed.
Also RBW is not needed for calculation and setting it will not solve the problem.
I know that the tool was made to do calculations in the time domain.
But if it is possible to use the control in frequency domain, it should also be possible to use
the measurement tools.
Any Idea how this can be done ?
that is the code I am using:
SA = dsp.SpectrumAnalyzer('InputDomain','Frequency',...
'SampleRate', 1e6, ...
SA.RBW = 5000;