Matlab Simulink variable's time
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I want to know more about Matlab Simulink variable's time. I need an option to measure how long the variable maintains its value in Matlab Simulink during simulation mode and how many times variable's value has changed.
Any ideas how to do that?
1 件のコメント
Giuseppe Naselli
2014 年 4 月 4 日
did you see my answer? if you use it and it works please accept it :) G
回答 (2 件)
Giuseppe Naselli
2014 年 4 月 1 日
Hi Darka,
you can log your variable using a "outport" for example (or a "to Workspace" block), you can also set your model to give the variable time in the Matlab workspace at the end of the simulation(from Model Configuration Parameter) and then once the simulation finishes you can plot/post process your variable in Matlab and see how it chances
Alternatively you can use the DETECT CHANGE block (in the Logic and Bit Operation Simulink Block Library) and then log the output of this block
I hope this help
G
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!