coder.extrinsic error! Radar designing
Afficher commentaires plus anciens
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;
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Signal Radiation, Collection, and Reflection dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!