how to get the last row of a matrix in simulink

조회 수: 7 (최근 30일)
Yang Shen
Yang Shen 2019년 12월 7일
답변: Tasneem 2022년 7월 12일
how to get the last row of a 2-D matrix in simulink without knowing the matrix's size?(matrix size is variable)
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 12월 7일
MATLAB function block and index with end ?
Walter Roberson
Walter Roberson 2019년 12월 13일
Yang Shen comments to me:
Good! Many Thanks

댓글을 달려면 로그인하십시오.

답변 (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