How to understand output of demux?

10 visualizaciones (últimos 30 días)
ENDER AYHAN RENCUZOGULLARI
ENDER AYHAN RENCUZOGULLARI el 26 de Sept. de 2020
Respondida: stozaki el 28 de Sept. de 2020
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.

Respuestas (1)

stozaki
stozaki el 28 de Sept. de 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

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by