how to change amplitude? phased.FMCWWaveform
3 次查看(过去 30 天)
显示 更早的评论
How can I change the amplitude of in "phased.FMCWWaveform" ? Its default value is 1 but i want to change it and i don't know how?
please someone help ne in this issue, thanks![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/392163/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/392163/image.jpeg)
0 个评论
回答(1 个)
Pratyush Roy
2020-10-29
Hi Khurram,
One cannot directly set the amplitude value using the phased.FMCWWaveform.
As a workaround the step function on the FMCW Waveform object can be used to get the values of the signal in time-domain and scale that with an amplitude value.
waveform = phased.FMCWWaveform('SweepBandwidth',100.0e3,...
'OutputFormat','Sweeps','NumSweeps',2); % Get the FMCW waveform object with particular specifications
wv1 = step(waveform); %Generates the complex values obtained from the FMCW signal in time domain
wv_real = amp*real(wv1); %amplitude of the signal is scaled to the value amp
plot(wv_real)
In case of an amplitude which is time varying one can multiply the amplitude vector with the "wv1" vector element-wise:
wv_real = amp.*real(wv1);
You can go through the following links for further help
Regards,
Pratyush.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Automotive Radar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!