how to get the last row of a matrix in simulink

4 次查看(过去 30 天)
how to get the last row of a 2-D matrix in simulink without knowing the matrix's size?(matrix size is variable)

回答(1 个)

Tasneem
Tasneem 2022-7-12
I understand that you want to access the last row of a matrix but do not know the matrix size. Please use the Submatrix block, set it's block parameters Starting row: last and keep the other parameters at their default settings. This should give you the last row.
Refer to the Submatrix Block document for more information on how to use and set the Submatrix Block Parameters.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by