Parameters from MATLAB function in Simulink
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jasper Mattijs
le 6 Mai 2014
Commenté : Santosh Gnanasekaran
le 1 Jan 2018
Hi
I'm writing a function in MATLAB. In this function I call a Simulink diagram with following command: sim('diagram', 'vxin', value) The error I get is: block_diagram does not have a parameter named 'vxin'. In the diagram I have a constant block where I entered vxin. Clearly this isn't the right way.
How can I fix this?
Thanks
1 commentaire
Santosh Gnanasekaran
le 1 Jan 2018
Probably 'vxin' is not in the base workspace as its value is undefined. you can assign any constant\variable in simulink pertaining to that particular block and then try again.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions 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!