matopen function in rapid accelerator in simulink

8 vues (au cours des 30 derniers jours)
Tom
Tom le 3 Sep 2015
Modifié(e) : Pramil le 6 Mai 2025
Hi,
I wish to use the functions of matopen and matGetVariable in the rapid accelerator mode of simulink. When I try this, I get an error because I need to include the mat.h file. This creates errors because of duplicate definitions of mxarray (mat.h includes matrix.h). I want to use this because I want to open mat in the mdlInitParameters function. I store all my parameters in a file because this way I can compare the models in an easy way and create them in an easy way (always using same file name,...).
Tom Wambecq
  1 commentaire
Hamid
Hamid le 6 Fév 2025
Hello did you find any solution for this?

Connectez-vous pour commenter.

Réponses (1)

Pramil
Pramil le 6 Mai 2025
Modifié(e) : Pramil le 6 Mai 2025
Hey Tom,
This is a known limitation of Simulink.
You can refer to the following MATLAB Answer for more details:
Hope this helps!

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by