Plotting the Refine Factor Data Points and Major Time steps in a plot
5 次查看(过去 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!