MATLAB Answers

0

How to Execute Maltab Function Block Every X Seconds in Simulink?

Asked by Andrew Poissant on 14 Nov 2018
Latest activity Answered by Titus Edelhofer on 14 Nov 2018
I have a Matlab Function Block that slows down my SImulink simulation. Is there a way to execute the Matlab Function Block every X seconds so my simulation will run faster? It is unnecessary to run the Matlab Function Block every time iteration.

  0 Comments

Sign in to comment.

1 Answers

Answer by Titus Edelhofer on 14 Nov 2018
 Accepted Answer

Hi Andrew,
you can achieve this by assigning a sample time: right click on the block, choose "Block Parameters (Subsystem)", and set the Sample Time to 1.
Titus

  0 Comments

Sign in to comment.



Translated by