Plotting the Refine Factor Data Points and Major Time steps in a plot

조회 수: 6 (최근 30일)
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
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개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by