Save a value to variable (Simulink)
Afficher commentaires plus anciens
Hi,
I am using the Submatrix block in Simulink, in which I select the output matrix to contain all the rows of the input matrix and the first x columns (using the "Ending column: index" parameter). I would like though to choose x (the number of columns) according to some other calculations taking place in my algorithm. The Submatrix block, however, does not offer the option to pass its parameters as inputs.
Any idea of how I could achieve that? A possible solution would be if I could save the value of x to a variable and then give the variable name for the Ending column index parameter... Is there any way to do that?
2 commentaires
Agamemnon Krasoulis
le 21 Mai 2012
K E
le 21 Mai 2012
Sorry, I have removed the comment.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Signal Attributes and Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!