I have a bus if signals in MATLAB Simulink and I want to apply a gain to modify the signal values but preserve the naming elements of the bus, but when I apply a gain to the bus the output is just a vector, losing all the naming data.
Is there a way to preserve the naming data?
Naming data being lost through a gain
Adriaan
18.2k7 gold badges47 silver badges88 bronze badges
-
Possible duplicates: stackoverflow.com/questions/35851682/…, stackoverflow.com/questions/34925584/…Wolfie– Wolfie2025年09月29日 11:12:32 +00:00Commented Sep 29 at 11:12
-
I tried the solution to stackoverflow.com/questions/34925584/… before asking the question but unfortunately the Bus to vector block flattens the data structure of the bus to just one level and also removes any name tags, so I wanted to know if there was a better solutionAlex Band– Alex Band2025年09月29日 11:54:59 +00:00Commented Sep 29 at 11:54
lang-matlab