Code to obtain origin and destinations of unions on Simulink
Ältere Kommentare anzeigen
Hi everyone,
I would like to have some code or function which allows me to have a matrix on Matlab where I can find the origins and destinatons of unions on a Simulink file.
For example, let's imagine we join a goto named 'speed' with a system which has an input called 'A'. Then, we join a goto called 'acceleration' to a different input of the same system (or it could be a different one) called 'b'.
I would like to have a matrix like:
Union=['speed' 'a'; 'acceleration' 'b']
Thank you very much for your help!
Regards,
Amadeu
Antworten (1)
Kaustubha Govind
am 1 Jul. 2013
Bearbeitet: Kaustubha Govind
am 1 Jul. 2013
0 Stimmen
Just to clarify - did you mean structure, and not union?
If structure, please see Virtual and Nonvirtual Buses. I think you need to be using a Nonvirtual bus signal to be able to pass the signal into a MATLAB Function block or to log it to the MATLAB workspace.
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!