필터 지우기
필터 지우기

How to select columns from data matrix using for loop?

조회 수: 2 (최근 30일)
giancarlo maldonado cardenas
giancarlo maldonado cardenas 2022년 4월 29일
답변: Voss 2022년 4월 29일
hello everyone I wanted to know how to select a column for each iteration, for example I have a vector this vector contains a signal, then I divided this vector into a 24x64 matrix, what I need is that in each iteration grab these 24 and check if there is a peak .
any help will be greatly appreciated.
attached signal vector (PDP).
partbin = reshape (pdp,24,[]);
threshold = 0.0435;
for i= 1:length(partbin)
end

답변 (1개)

Voss
Voss 2022년 4월 29일
partbin = reshape (pdp,24,[]);
threshold = 0.0435;
for i= 1:size(partbin,2)
current_column = partbin(:,i);
% determine whether there's a peak in current_column,
% which is the i-th column of partbin
end

카테고리

Help CenterFile Exchange에서 LTE Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by