MATLAB: How to extract a list of signals in buses in various parts of the model

buslistnamesofsignalssimulink

How do I extract a list of signals in buses in various parts of my model?

Best Answer

A simple example model and script are attached showing how to get the signal names from a bus in different places:
businfo.m
busaccess.slx Another approach would be to use bus objects: