How to programmatically set "Average reference power" and "reference phase offset (rad)" parameters for Simulink "Constellation Diagram" block in the Communications Toolbox for MATLAB R2024b?
I am unable to programmatically access "Average reference power" and "reference phase offset (rad)" parameters for Simulink "Constellation Diagram" block in the Communications Toolbox for MATLAB R2024b.
For a given model containing "Constellation Diagram" block, the "ReferenceConstellation" can be set using the following command. Setting it to 'QPSK' as an example.
>> set_param('<model_name>/Constellation Diagram', 'ReferenceConstellation', 'QPSK');
In the GUI, there is an option to set "Average reference power" and "Reference phase offset (rad)". However, when I try to use a similar approach to set it programmatically using the command,
>> set_param('<model_name>/Constellation Diagram', 'AverageReferencePower', 10);
I get the following error:
ConstellationDiagram block does not have a parameter named 'AverageReferencePower'
Similar error is observed when trying to access "reference phase offset (rad)".
How do I set "Average reference power" and "reference phase offset (rad)" programmatically?
采纳的回答
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!