MATLAB Answers

Error using phased.FMC​WWaveform/​validatePr​opertiesIm​pl

조회 수: 3(최근 30일)
Robin Amar
Robin Amar 2020년 12월 8일
답변: Ajay Neeli 2021년 1월 5일
*** Error ***
Error using phased.FMCWWaveform/validatePropertiesImpl (line 348)
The product of SampleRate and SweepTime must be all integers.
Below is the Code snippet which I'm using:
fc = 77e9;
c = 3e8;
lambda = c/fc;
range_max = 200;
tm = 15*range2time(range_max,c);
range_res = 0.78;
bw = range2bw(range_res,c);
sweep_slope = bw/tm;
fr_max = range2beat(range_max,sweep_slope,c);
v_max = 230*1000/3600; % Maximum unambiguous speed detectable -> 230km/h
fd_max = speed2dop(2*v_max,lambda);
fb_max = fr_max+fd_max;
fs = max(2*fb_max,bw);
waveform = phased.FMCWWaveform('SweepTime',tm,'SweepBandwidth',bw,...
sig = waveform();
I need to customize the Inter-Chirp Time ("tm") & sampling freq as per the application. But when I do it, The api: "phased.FMCWWaveform" throws an error. Has anyone faced such an Issue!!
Any hacks to solve it?
Thanks for helping & guiding!


Ajay Neeli
Ajay Neeli 2021년 1월 5일
The error is due to the requirement that the product of SampleRate(fs) and SweepTime(tm) must be all integers.
As mentioned in the documentation, the quantity (SampleRate .* SweepTime), a scalar or vector, must contain only integers. You may modify these parameters such that the requirement is fulfilled.
Details on the phased.FMCWWavform System Object, including the integer requirement described here, may be found at the following URL:

Community Treasure Hunt

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

Start Hunting!

Translated by