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일

0 개 추천

Hi,
if your initial matrix is M,
The new matrix,N can be created with:
N=M(105:381, : )

추가 답변 (1개)

randerss simil
randerss simil 2021년 2월 17일

1 개 추천

%if true
A = rand(389,40)
iwant = A(105:381,:)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2021년 2월 17일

댓글:

2021년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by