Simulink function block using matlabfunction is very slow

조회 수: 4 (최근 30일)
Zhikai Zhang
Zhikai Zhang 2020년 6월 3일
So I generated a matlabfunction varible in the workspace since it is a very long 6x6 symbolic matrix and would like to substitue values into the formula, in order to use it in simulink I have a simulink function block whoch calls an extrinsic function in the directory and which calls the matlabfunction. However, it tales a long time to run the simulation, because it takes this long I have never finished the simulation. Usually when I just call the matlabfuncion in the workspace it would ony take around 5 seconds to give me the answer so I am not sure why it became this slow when it comes to simulink, anyone has an answer?
Thanks in advance

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by