coder.extrinsic error! Radar designing
显示 更早的评论
I am scanning an area from 0 to 45 degrees Azimuth using simulink blocks for FMCW radar. I used function block to write the code as was mentioned in radar scan example. The output of coder.extrinsic of phased.Radiator is mxarray and when I tried to assign it as follows I get an error " MATLAB expression 'phased.Radiator' is not of the correct class: expected 'struct', found 'phased.Radiator'". I preinitialized it already also. Same is the case with ant_array
coder.extrinsic('Phased.CosineAntennaElement','phased.Radiator','phased.URA');
sCos=phased.CosineAntennaElement('FrequencyRange', [35.5e9 36.5e9]);
hradiator=struct('Sensor', zeros(30), 'OperatingFrequency', fc);
hradiator=phased.Radiator('Sensor',sCos,'OperatingFrequency',fc);
ant_array = phased.URA('Element',sCos,'Size',[30 30],'ElementSpacing',[lambda/2, lambda/2]);
hradiator.Sensor = ant_array;
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Radiation, Collection, and Reflection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!