How can I demux a "From workspace" vector or array into individual constant blocks?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
william Dussault
le 9 Déc 2021
Commenté : Fangjun Jiang
le 9 Déc 2021
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?
0 commentaires
Réponse acceptée
Fangjun Jiang
le 9 Déc 2021
Don't use the "From Workspace" block. Just use the Constant block, specify the value as "a" and then Demux.
2 commentaires
Fangjun Jiang
le 9 Déc 2021
"From Workspace" block can be used to import time-varying values. The data has to include a time vector.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!