Effacer les filtres
Effacer les filtres

Array Creation in simulink with size value from a simulink block

2 vues (au cours des 30 derniers jours)
Balaji Ramesh Sri
Balaji Ramesh Sri le 28 Déc 2022
Hii... I need to do ones(1,N) in simulink , where N comes from a output of a simulink block (N is a integer). I dont want to use matlab functions. Any ideas would be useful.

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 28 Déc 2022
One of the possible options is to use the [eye] and extract diagonal blocks - see attached simple Simulink model. The size of the identity matrix (diagonal) should be defined in MATKLAB workspace.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by