How to extract data from MATLAB code?

2 ビュー (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 2 月 17 日
コメント済み: Nisar Ahmed 2021 年 2 月 17 日
My data consists of 389 rows and 40 columns like (size(gather) 389 40). I want to extract 40 columns and rows from 105 to 381 (105:381) with new dimensions (size(gather) 276 40). How I can do it?

採用された回答

Selim Gullulu
Selim Gullulu 2021 年 2 月 17 日
Hi,
if your initial matrix is M,
The new matrix,N can be created with:
N=M(105:381, : )
  1 件のコメント
Nisar Ahmed
Nisar Ahmed 2021 年 2 月 17 日
Thanks

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

その他の回答 (1 件)

randerss simil
randerss simil 2021 年 2 月 17 日
%if true
A = rand(389,40)
iwant = A(105:381,:)
  1 件のコメント
Nisar Ahmed
Nisar Ahmed 2021 年 2 月 17 日
Thanks

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by