How can I change axes limits of the XY Graph dynamically?

44 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
コメント済み: guygyuggfff 2021 年 6 月 17 日
I would like to dynamically adjust the axes limits of an XY Graph during simulation so that the trace is visible even if it exceeds the limits initially set in the Graph’s mask.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
Simulink does not provide a way to dynamically adjust the graph axes limits, but this can be done with an M-function.
The attached M-function LIMIT_CHECK checks if data is outside the axis limits, and if so, changes the limits so that the data is fully displayed.
The example Simulink model shows that the function is separately called for each axis, and that the axes limits are reset during model initialization.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R14SP1

Community Treasure Hunt

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

Start Hunting!

Translated by