필터 지우기
필터 지우기

splitting data w.r.t. sampling interval

조회 수: 2 (최근 30일)
sermet
sermet 2016년 10월 18일
답변: KSSV 2016년 10월 18일
x=1:1:20;
I need to split x array w.r.t 5 sampling interval as follows;
x_5_1=[1 2 3 4 5];
x_5_2=[6 7 8 9 10];
x_5_3=[11 12 13 14 15];
x_5_4=[16 17 18 19 20];
How can I define these sub arrays w.r.t. sampling interval with codes?

채택된 답변

KSSV
KSSV 2016년 10월 18일
x = 1:20 ;
x = reshape(x,5,[])' ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by