Breakdown the matrix signal into individual signals in Simulink
4 次查看(过去 30 天)
显示 更早的评论
I have a signal "a_x" which is a matrix that includes 3 signals a_1, a_2,a_3. for further computation, I need to use these signals. Secondly, is it possible without writing any .m file?
Also , how to implement a matrix signal? Is it like a bus or anything else?
0 个评论
回答(1 个)
Jonas
2021-2-17
If you have a vector signal with three elements, you can extract those elements using the Demux block. The Mux block allows creating a vector of signals.
In order to create a matrix signal, you can use the Matrix Concatenate block. This allows you to combine vectors across the second dimension.
The usage of a Bus is also possible, but more complex because you need to maintain its structure. It is used when you want to combine signals with different data types and dimensions together. If you want to create a simple matrix of same data type and scalar dimension, use Mux and Matrix Concatenate. Also, you cannot perform simple computations on a Bus as a whole, which you can do with a matrix signal.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!