Save a value to variable (Simulink)
Ältere Kommentare anzeigen
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 Kommentare
Agamemnon Krasoulis
am 21 Mai 2012
K E
am 21 Mai 2012
Sorry, I have removed the comment.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Signal Attributes and Indexing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!