Mux elements of multiple (same structure) busses together for scope (dynamic)

1 次查看(过去 30 天)
Hi, assume I have two busses with elements a and b each. I would like to scope these values in two subplots where in the upper one both a elements are plotted and in the bottom both b values. I want the structure to be in such a way, that if I were to add a third bus of the same structure, a third set of a and b elements is added to the same respective subplots automatically. Is there a way to achieve this?
Currently, I have to use bus selectors and muxes for each bus and element to get them back together in this fashion*. Arrays of buses look interesting, however I have not found a way to mux bus elements and feed that to a scope in some way without having to manually expand each mux for each bus element when I add a third bus.
*for each bus: bus selector to get all elements. Then Use mux on each element type of all busses to create one mux'ed signal per bus element type to be fed to a scope input.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 View and Analyze Simulation Results 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by