フィルターのクリア

Breakdown the matrix signal into individual signals in Simulink

1 回表示 (過去 30 日間)
vamshi krishna
vamshi krishna 2021 年 2 月 16 日
回答済み: Jonas 2021 年 2 月 17 日
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?

回答 (1 件)

Jonas
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.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by