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 Comments

Do you want the names of the Inport/Outport blocks, or the data values of those blocks for a simulation?
Yes! the name of the inport/outport blocks

Sign in to comment.

Answers (1)

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

Categories

Asked:

on 30 Mar 2022

Answered:

on 30 Mar 2022

Community Treasure Hunt

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

Start Hunting!