Borrar filtros
Borrar filtros

Submatrix block with dynamical parameter

2 visualizaciones (últimos 30 días)
Owen
Owen el 14 de Sept. de 2012
Hi,
A frame based column vector shall be split and changed to a submatrix with the Submatrix block. Now the problem is, the parameter “Starting row offset” must be set to the first element of this vector, that is, dynamically.
For example, if the original vector is [1;2;3;4;5], then the parameter “Starting row offset” shall be 1. Is it possible with this Submatrix block? Or, are there other ways to solve this problem?
Thanks Senmeis

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 23 de Oct. de 2012
This blog post on How Do I Change a Block Parameter Based on the Output of Another Block? explains why can't achieve what you need with a Submatrix block. Perhaps you should use the (Embedded) MATLAB Function block and write your own MATLAB code that does what you need. Note that if the starting row offset is dynamic, your output will be a variable-size signal, and you need to configure the output of the MATLAB Function block accordingly.

Más respuestas (0)

Categorías

Más información sobre Model Verification en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by