Problem with a LinearFMWaveform property?
3 ビュー (過去 30 日間)
古いコメントを表示
I have this bit of code in a script:
waveform{n_wav} = phased.LinearFMWaveform('SampleRate', fs, ...
'PulseWidth',tps(n_wav), ...
'SweepBandwidth', bw, ...
'PRF', prfs(n_wav), ...
'SweepInterval','Symmetric',...
'OutputFormat', 'Pulses', ...
'CoefficientsOutputPort',true, ...
'PRFOutputPort', true ...
);
When I run the script, i get these errors:
Error using phased.internal.AbstractPulseWaveform (line 140)
Unrecognized property 'CoefficientsOutputPort' for System object
'phased.LinearFMWaveform'.
Error in phased.internal.AbstractContinuousPhasePulseWaveform (line 49)
obj@phased.internal.AbstractPulseWaveform(varargin{:});
Error in phased.internal.AbstractLinearFMWaveform (line 55)
obj@phased.internal.AbstractContinuousPhasePulseWaveform(varargin{:});
Error in phased.LinearFMWaveform (line 109)
obj@phased.internal.AbstractLinearFMWaveform(varargin{:});
Error in sim_main (line 259)
waveform{n_wav} = phased.LinearFMWaveform('SampleRate', fs, ...
It seems like the code doesn't recognize the CoefficientsOutputPort property but this appears to be a supported property of this object. Any suggestions for what may be causing these errors?
2 件のコメント
Anjaneyulu Bairi
2024 年 1 月 11 日
Hi,
With the given code I am not able to reproduce the error , can you attach the file or post the code?
George
2024 年 1 月 14 日
What matlab version are you using? It could be that you are using an old version in which the phased.LinearFMWaveform does not have that property. If you just create a default LFMWaveform and print it to the command line, do you see that property?
回答 (1 件)
Shivam
2024 年 1 月 12 日
Hi Richard,
It is my understanding that you're encountering an issue where the "CoefficientsOutputPort" property is not recognized when you attempt to configure a linear FM pulse waveform System object with the "phased.LinearFMWaveform" function, using a specific set of name-value pairs.
It is important to note that the "CoefficientsOutputPort" property became available for the "phased.LinearFMWaveForm" function starting with the MATLAB R2020b release. Therefore, I suggest verifying the version of MATLAB you are currently using.
You can consider executing your code in a more recent version of MATLAB that includes support for this property.
You can refer to the following documentation to know more about the "phased.LinearFMWaveform" function and its properties: https://www.mathworks.com/help/releases/R2023b/phased/ref/phased.linearfmwaveform-system-object.html
I hope this information will be of assistance to you.
Thanks
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!