Filter löschen
Filter löschen

Using extrinsic function and calling matlabfunction is very slow in simulink

3 Ansichten (letzte 30 Tage)
I have a complicated 6x6 sym matrix and I want to sub values into it in simulink. I generated a matlabfunction and in the simulink function block I called an extrinsic function which calls the matlabfunction generated as a varible in the workspace. But this makes my model go extremely slow, is there a better way I can integrate the 6x6 matrix into simulink? Thanks!
Note: I have tried to use matlabfunctionblock as well, but that is very slow and it took hours and didn't even finish generating the block
  1 Kommentar
Ameer Hamza
Ameer Hamza am 7 Jun. 2020
The symbolic toolbox is usually slow, and calling it from Simulink using extrinsic will make the simulation very slow. If possible, you should convert it to a floating-point function type. See the function matlabFunction(): https://www.mathworks.com/help/releases/R2020a/symbolic/matlabfunction.html

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by