Extract data from simulink to excel
8 次查看(过去 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
2022-3-30
Do you want the names of the Inport/Outport blocks, or the data values of those blocks for a simulation?
回答(1 个)
Fangjun Jiang
2022-3-30
blocks=find_system('Model/System','FindAll','On','SearchDepth','0', 'BlockType','Inport');
get(blocks,'Name')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Functions in Microsoft Excel 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!