Simulink: too many input arguments
Afficher commentaires plus anciens
Hi community, I'm trying to simulate in Simulink a flocking model. I want to realize the motion for a flock of sheep. I started to consider only 2 sheep and each simulink block represents a sheep. In input to each block, I send some parameters and thanks to a MUX block, I send all to an Interpreted MATLAB Function block that it compute some results. I declared all parameters in the function used in the Interpreted MATLAB Function block (inputs included).
If I start to simulate, I get the message in the figure and I don't know the reason.

It seems that there are too many inputs? Why? In the past, I realized some more complex programs, without this kind of problem.
This is the Simulunk environment:

Thanks to all :)
1 commentaire
Omur Bas
le 2 Oct 2017
We can probably help you better if you can post the function definition for your MATLAB function.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!