Analyzing different sections of an array
조회 수: 2(최근 30일)
표시 이전 댓글
채택된 답변
Jan
2022년 11월 27일
Either reshape the array:
x = rand(20, 100);
y = reshape(x, 20, 10, 10);
m = mean(x, 2); % If you want the mean value over block of 10 columns
or use a loop:
for k = 1:10:100
a = k;
b = k + 9;
process(x(:, a:b));
end
댓글 수: 0
추가 답변(0개)
참고 항목
범주
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!