フィルターのクリア

how to get the last row of a matrix in simulink

5 ビュー (過去 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 Center および File ExchangeSimulink Functions についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by