Why do the axes properties of the Scope block not update when using the SET_PARAM function in Simulink 6.0 (R14)?
1 回表示 (過去 30 日間)
古いコメントを表示
I use the SET_PARAM function to set the labels of my Scope block, as in the following code:
A = struct('axes1',{'TopGraph'},'axes2',{'BottomGraph'})
set_param('myExample/Scope1','AxesTitles',A);
When I view the parameters with the GET_PARAM function, the AxesTitles property appears to have been successfully changed, as shown below.
get_param('myExample/Scope1','AxesTitles')
However, when the Scope block graphs are viewed in Simulink, the AxesTitles are not changed.
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
This works correctly if all the commands are executed before opening the scope. If the scope is open before setting the new axes titles, then it will be updated at the start of simulation or when you update the model.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で View and Analyze Simulation Results についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!