MATLAB: What is the script to get line handle by selecting line in a model

scriptsimulink

what is the script to get line handle by selecting line in a model

Best Answer

Not aware of anything that gets you handle of a selected line. But
find_system(bdroot,'findall','on','Type','Line')
gives all line handles in the block diagram. You can add a specific path in place of bdroot.