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.

4 views (last 30 days)
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

Answers (1)

Naeimeh N
Naeimeh N on 7 Sep 2021
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.

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!