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