MATLAB Answers

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

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

로그인 to comment.

채택된 답변

Titus Edelhofer
Titus Edelhofer 14 Nov 2018
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

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by