how to change amplitude? phased.FMCWWaveform

3 views (last 30 days)
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

Answers (1)

Pratyush Roy
Pratyush Roy on 29 Oct 2020
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.
The following code snippet illustrates the use of the step function:
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!