How can i extract small matrix from a big matrix

36 ビュー (過去 30 日間)
aiman
aiman 2022 年 11 月 7 日
コメント済み: aiman 2022 年 11 月 7 日
Hello,
how can extract rows and columns from a big matrix using MATLAB ,For example I have 10*10 matrix and i only want first five rows and first column
  1 件のコメント
aiman
aiman 2022 年 11 月 7 日
Thank you that's helped!

サインインしてコメントする。

採用された回答

BN
BN 2022 年 11 月 7 日
編集済み: BN 2022 年 11 月 7 日
Let A be your example matrix (10x10), and you want to extract the first 5 rows of its first column. It's pretty easy:
A = rand(10,10); % creating random 10*10 matrix
B = A(1:5, 1); % extract first 5 rows of first column

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by