Extract data from simulink to excel

Hi!
how to extract the list of inputs and outputs from simulink and list them on an excel. Should I imperatively put for each input/output a toworkspace block?,

2 件のコメント

Fangjun Jiang
Fangjun Jiang 2022 年 3 月 30 日
Do you want the names of the Inport/Outport blocks, or the data values of those blocks for a simulation?
Samah EL QASSAH
Samah EL QASSAH 2022 年 3 月 30 日
Yes! the name of the inport/outport blocks

サインインしてコメントする。

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 3 月 30 日

0 投票

blocks=find_system('Model/System','FindAll','On','SearchDepth','0', 'BlockType','Inport');
get(blocks,'Name')

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

タグ

質問済み:

2022 年 3 月 30 日

回答済み:

2022 年 3 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by