필터 지우기
필터 지우기

Simulink: too many input arguments

조회 수: 13 (최근 30일)
Luigi Siviello
Luigi Siviello 2017년 9월 29일
댓글: Omur Bas 2017년 10월 2일
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
Omur Bas
Omur Bas 2017년 10월 2일
We can probably help you better if you can post the function definition for your MATLAB function.

댓글을 달려면 로그인하십시오.

채택된 답변

Yogananda Jeppu
Yogananda Jeppu 2017년 10월 1일
Check the number of inputs to the mux block. Check their dimensions. If the inputs to the block are three from one port you may have this issue. I am guessing. You can also use a Matlab function and pass individual data. You have more flexibility there.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by