Extract data from simulink to excel

5 次查看(过去 30 天)
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
blocks=find_system('Model/System','FindAll','On','SearchDepth','0', 'BlockType','Inport');
get(blocks,'Name')

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by