フィルターのクリア

using vector signal instead of using mux signals

1 回表示 (過去 30 日間)
Henry Buck
Henry Buck 2015 年 9 月 11 日
回答済み: Tim McBrayer 2015 年 9 月 11 日
hi, I am using a mux for muxing signals as shown inthe attached file. Is therean option to use part of the vector, for the specific signal instead of using mux? For example: In Verilog or VHDL we use it in a way SIG[0:9]. To connect a specific signals, we wrote SIG[3] or SIG[7] or part of vector SIG.
Thanks for your help' Henry

回答 (1 件)

Tim McBrayer
Tim McBrayer 2015 年 9 月 11 日
As you have found, you can use the Mux block to combine scalar signals into a vector of signals, and the Demux block to separate them back out. If you wish to extract only specific elements you can use the Selector block to select the subset of elements of a vector signal that you are interested in. The Multiport Switch block can also be used to select a single element from an input vector. Finally, if you have access to the DSP System Toolbox, the Variable Selector block in that toolbox can also provide a similar functionality to the Selector block.

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by