coder.extrinsic error! Radar designing
Mostra commenti meno recenti
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;
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Signal Radiation, Collection, and Reflection in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!