How to understand output of demux?
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!