Can you pass a bus containing a string into a vector concatenate block?
Show older comments
I need to create a vector of the same bus so that the signal is of the bus type but dimensions of 8. One of the elements of the bus is a string. When I do this, I get the error that a bus with type string cannot be used with the vector concatenate block. Is there a different block or workaround so i can create a signal, typed by a bus, with a dimension greater than 1?
Answers (1)
Shanmukha Voggu
on 31 Aug 2021
0 votes
Hi Mark,
To convert the bus containing a string and numerals as elements
1)give bus signal as input to bus selector block
2)double click on the bus and update it to divide the input signal into the numerals and string
3)use the vector concatenate for the numerals alone
1 Comment
Mark Marzotto
on 31 Aug 2021
Edited: Mark Marzotto
on 16 Sep 2021
Categories
Find more on String in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!