from matlab class to simulink
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to use a matlab user defined class in simulink? What is possible in simulink is to use a matlab user defined function or script but not a class. The solution I could think off is to place the class methods (functions) in a simulink fnc block.
0 Commenti
Risposte (1)
Kaustubha Govind
il 27 Dic 2011
Modificato: John Kelly
il 26 Feb 2015
See the documentation section Types of Custom Blocks>MATLAB Function Blocks to see what options are available in Simulink to call into MATLAB functions. It is currently not possible to directly call into a class, but you should be able to create wrapper functions to call into the class methods.
0 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!