Plotting the Refine Factor Data Points and Major Time steps in a plot
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 8 de Feb. de 2019
Respondida: MathWorks Support Team
el 26 de Mzo. de 2019
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?
Respuesta aceptada
MathWorks Support Team
el 8 de Feb. de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!