Plotting the Refine Factor Data Points and Major Time steps in a plot
6 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 2 月 8 日
回答済み: MathWorks Support Team
2019 年 3 月 26 日
Are you able to use a MATLAB system block to take advantage of the MATLAB 'plot' function to display the Major time step data points and the "Refine Factor" data points of a Simulink Model?
採用された回答
MathWorks Support Team
2019 年 2 月 8 日
You may specify a block to run only major time steps by specifying the sample rate as [0,1], signifying "Fixed in Minor Step". Also, refine factor data points can be created using the Configuration Parameter's option under additional parameters in the Data Import/ Export tab called "Refine factor". The solver will create Refined Factor -1 data points between the time steps.
However plotting only the Major and Refine Factor time steps is a limitation of the MATLAB system block, since a MATLAB system block is unable to discern the difference between minor time steps and the data points created from the refinement factor. One possible workaround is to use the "Run-Time Data Access" feature available when you right click on a logging badge and select properties. This will give you access to data as the simulation runs. This is found at the following link.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!