フィルターのクリア

How can I demux a "From workspace" vector or array into individual constant blocks?

4 ビュー (過去 30 日間)
If I have a vector on my workspace
a = [1 0 1 1 0 1 1 1 0]
Is it possible to use the "From workspace" block in simulink to "deMux" the vector into multiple constants? So in this example I have 9 "Constant" blocks?

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 12 月 9 日
Don't use the "From Workspace" block. Just use the Constant block, specify the value as "a" and then Demux.
  2 件のコメント
william Dussault
william Dussault 2021 年 12 月 9 日
Thanks! It worked. So what's the point of having a "From workspace" block?
Fangjun Jiang
Fangjun Jiang 2021 年 12 月 9 日
"From Workspace" block can be used to import time-varying values. The data has to include a time vector.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by