필터 지우기
필터 지우기

How can I down-sample the large matrix size in constant period of times?

조회 수: 3 (최근 30일)
Meghraj Kc
Meghraj Kc 2022년 10월 26일
댓글: Meghraj Kc 2022년 10월 26일
I have the matrix size of 1302236x1. Now I want to read this matrix size after 30 interval each.
For example if I read row 1 then I want to read row 30 then row 60 then row 90 .... I want to reach upto 1302236.
How can I do this?

채택된 답변

Jan
Jan 2022년 10월 26일
The distance between 1 and 30 is 29, while it is 30 from 30 to 60. I you want the elements 1, 31, 61, ... use:
Y = X(1:30:end)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by