How to understand output of demux?

조회 수: 10 (최근 30일)
ENDER AYHAN RENCUZOGULLARI
ENDER AYHAN RENCUZOGULLARI 2020년 9월 26일
답변: stozaki 2020년 9월 28일
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.

답변 (1개)

stozaki
stozaki 2020년 9월 28일
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

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by