Modify In/Output Port names with a MATLAB script
7 views (last 30 days)
Show older comments
Gennaro Di Sarno on 2 Mar 2023
Commented: ciming zhu on 27 Apr 2023
I have a simulink subsytem with a huge number of input and output ports, I need to rename all the ports names according to an excel file list.
I'd like to avoid doing it manually but I have no clue on how to write down a MATLAB script to automatically do it.
Fangjun Jiang on 3 Mar 2023
Edited: Fangjun Jiang on 3 Mar 2023
Something like this:
[~,~,InPortNames]=xlsread('ExcelFileName'); % read Excel file to get PortNames as a cell array
ciming zhu on 27 Apr 2023
Could you please show me how to achieve this proceed in multibody?It seems that there is no Inport in multibody.Thanks a lot.
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!