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

조회 수: 75 (최근 30일)
Andrew Poissant
Andrew Poissant . 2018년 11월 14일
답변: Titus Edelhofer . 2018년 11월 14일
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.

채택된 답변

Titus Edelhofer
Titus Edelhofer 2018년 11월 14일
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개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by