Speed comparison S-Function - Simulink blocks
Ältere Kommentare anzeigen
Hi!
I have simulink Level 2 M File S-Function block and I have also a subsystem with simulink blocks written to do exactly the same thing, they solve the same differential equations. The subsytem runs much faster thant the S-function block.
How should the performance of a S-Function block compare to a fully simulink based model? In this case I am talking about a Level 2 M file S Function.
Thank you for your answers.
Akzeptierte Antwort
Weitere Antworten (1)
Thiago Marinho
am 3 Jul. 2011
0 Stimmen
1 Kommentar
Kaustubha Govind
am 5 Jul. 2011
Thiago: Unfortunately the only way to get performance comparable with core blocks with MATLAB code is to use the MATLAB Function block. The only alternative currently is to write a C-MEX S-function, whose performance should be comparable to that of core blocks.
Kategorien
Mehr zu Event Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!