Filter löschen
Filter löschen

how to get the last row of a matrix in simulink

1 Ansicht (letzte 30 Tage)
Yang Shen
Yang Shen am 7 Dez. 2019
Beantwortet: Tasneem am 12 Jul. 2022
how to get the last row of a 2-D matrix in simulink without knowing the matrix's size?(matrix size is variable)
  2 Kommentare
Walter Roberson
Walter Roberson am 7 Dez. 2019
MATLAB function block and index with end ?
Walter Roberson
Walter Roberson am 13 Dez. 2019
Yang Shen comments to me:
Good! Many Thanks

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Tasneem
Tasneem am 12 Jul. 2022
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.

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by