How to extract data from array of [1 x 3] dimension using demux or other simulink block? I want to use this data for fuzzy obstacle avoidance controller as shown in figure.

조회 수: 5 (최근 30일)
I am gettting this error on runnning simulation. Demux cannot handle variable size data. What block should be used instead of demux or any other solution of this problem?
"Simulink cannot propagate the variable-size mode from the output port 1 of 'dynamicModelPID/Object Detector' to the input port 1 of 'dynamicModelPID/Demux'. This input port expects a fixed-size mode. Examine the configuration of 'dynamicModelPID/Demux' for one of the following scenarios: 1) the block does not support variable-size signals; 2) the block supports variable-size signals but needs to be configured for them".
I want to use this data from object detector that is in array format dimension [1 x 3]for fuzzy obstacle avoidance controller.
mobile robot model.PNG

답변 (1개)

Naeimeh N
Naeimeh N 2021년 9월 7일
This seems like a old query which I just ran into it, which no one had any comments on. However, my answer would shade some light on that. I had the same issue about the variable size inputs in Simulink lately so I'm quite sure that you can use matlab functions(with proper configuration of variable parameters) and then pass it to your desired blocks.

카테고리

Help CenterFile Exchange에서 Fuzzy Logic in Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by