Simulation Manager - Changing the X-axis

Hi,
I wonder if anyone can help? I would like to change the x-axis in the Simulation Manager from Runid to an angles (0 to 180 in 5 degree steps (37 in total)). Is there a simple way to do this? I don't seem to be able to locate a parameter in the model, do I need to set something up?
Thanks, Andy

 Akzeptierte Antwort

Andy
Andy am 8 Jan. 2024

0 Stimmen

Hi Divyanshu,
Many thanks for this, it works!
Best regards,
Andy

Weitere Antworten (1)

Divyanshu
Divyanshu am 4 Jan. 2024

0 Stimmen

Hi Andy,
The easiest way to Control the label of x-axis and what data should be displayed on the x-axis, is by setting the appropriate fields. You can find the corresponding fields under "Plot Properties".
Please refer the following documentation for further details:
Hope it helps!

2 Kommentare

Andy
Andy am 4 Jan. 2024
Hi Divyanshu,
Thank you for your reply. I have had a look under the "Plot Properties", the only options are: Runid or logsout{1} or tout.
I wish to either assign a new set of parameters for the x-axis from 0 – 180 degrees in 5-degree intervals or assign the parameter to the Runid.
This will then enable me to plot logsout{1} vs angle rather than logsout{1} vs Runid
Best regards,
Andy
Divyanshu
Divyanshu am 5 Jan. 2024
Bearbeitet: Divyanshu am 5 Jan. 2024
Hi,
You can make use of 'setVariable' function. Please refer the following example for better understanding about the usage of this function:
And for further details on 'setVariable' function please refer the following documentation:

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023b

Gefragt:

am 4 Jan. 2024

Beantwortet:

am 8 Jan. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by