Finding indices of a vector within a matrix

2 ビュー (過去 30 日間)
Lina Koronfel
Lina Koronfel 2022 年 5 月 18 日
編集済み: Davide Masiello 2022 年 5 月 18 日
I have, for example, 100x100 matrix of 0 and 1. I want to identify the row indices of each column during which a vector of "at least" 7 consecutive 1 occur, i.e. [1;1;1;1;1;1;1] or more.
I tried the following command but it returns all elements during which a "1" is found, even if it is located between 0s, i.e.[0;0,1;0;0].
for column=1:100
[row_indx, column_indx]=find(ismember(BigMatrix(:,column),[1;1;1;1;1;1;1]));
end
Please help me solve this problem. I want the code to be more strict in identifying only the indeces of interest .

回答 (1 件)

Davide Masiello
Davide Masiello 2022 年 5 月 18 日
編集済み: Davide Masiello 2022 年 5 月 18 日
Let me propse the following example
clear,clc
A = rand(100);
A = A > 0.5
A = 100×100 logical array
0 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 1 1 1 0 0 0 0 1 1 0 0 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 1 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 0 0 1 1 0 0 1 0 0 1 1 0 1 1 0 1 1 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 0 0 0 1 0 1 1 1 1 0 1 0 0 0 1 1 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 1 1 0 1 0 1 0 0 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 0 0 0 0 0 0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is no sequence of 7 ones";
else
all_idxs = [];
for k = 1:length(idxs)
all_idxs = [all_idxs,idxs(k):idxs(k)+6];
end
B{col} = unique(all_idxs);
end
end
Now, take for instance the 5th column. It does not contain any sequence of at least 7 ones, for which you get.
B{5}
ans = "There is no sequence of 7 ones"
On the other hand, the 10th column has a sequence of 7 ones at the indexes between 74 and 80. Therefore you get the following result
B{10}
ans = 1×7
74 75 76 77 78 79 80

カテゴリ

Help Center および File ExchangeFinancial Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by