How can I mux or demux a bus of vectors?
古いコメントを表示
I'd like to have a top level model which contains bus type connections between subsystems. The bus contains both vectors of the same length. Inside subsystems, I'd like to be able to process data either using the vectors as a whole, or by selecting a single index from each vector combined together as a bus of scalars. I'm stuck on the latter issue. I'm looking for a demux block or selector for a bus of vectors. Is there a good way to do this? I have the same need for muxing to create bus of vectors.
回答 (2 件)
Kaustubha Govind
2012 年 9 月 17 日
0 投票
2 件のコメント
Lee
2012 年 9 月 17 日
Kaustubha Govind
2012 年 9 月 17 日
Lee: I think you might be able to use the Bus To Vector block to convert your bus of scalars to a vector. But you will need to use a Bus Creator for the reverse process.
Guy Rouleau
2012 年 9 月 18 日
0 投票
You are making a bus of vectors. Based on your description you should go for an array of buses.
Then you could use the For Each subsystem to process the elements more efficiently.
See:
2 件のコメント
Lee
2012 年 9 月 21 日
Guy Rouleau
2012 年 9 月 21 日
This looks good. I can't think of a better way.
カテゴリ
ヘルプ センター および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!