How to understand output of demux?
5 views (last 30 days)
Show older comments
Hi,
My friend sent me an output of an ideal sensor data as mat file (which I don't know anything about the data inside this file). I am reading a specific data by using fromworkspace block and connect to a demux. However, I don't know how many output comes from demux and which data comes from which ports.
Let's say this mat file has 16 output and named as object ID, object distance, object class and so on.How can I know how many output comes from this mat file and in which order comes? For example, how to distinguish if object ID comes from the first ouput of demux or third output port? I have attached the mat file. So, I want to read FFC_Datagateway_DataReadWriteInputs inside the mat file and decompose the related data over the demux and connect the individual output from demux to correspondance input of a block? I have attached also a screen-shot of what I am trying to do.
Thanks.
0 Comments
Answers (1)
stozaki
on 28 Sep 2020
Hello ENDER AYHAN RENCUZOGULLARI,
"manual.FFC_Datagateway_DataReadWriteInputs.Data" contains 200x226 matrix data.
If you want to output only the first column from among them, set "manual.FFC_Datagateway_DataReadWriteInputs.Data (:, 1)" to the constant value.
By the way, "manual.FFC_Datagateway_DataReadWriteInputs" is a 'Simulink.SimulationOutput' object and cannot be extracted by Demux block.
stozaki
0 Comments
See Also
Categories
Find more on Simulink Environment Customization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!