Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Getting Matrix Row Values Back After Repeating Values Vector Has Been Calculated

2 ビュー (過去 30 日間)
Shahrukh Kasi
Shahrukh Kasi 2017 年 10 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a problem in which I have to find the repeating values in a matrix and then get the values of a row for which the values were repeating. I have completed the first part where the repeating values are fed into the vector valCount. I am not sure how to follow the second part in which I have to get the values of a row for which valCount >=2.
range_devices =
0 0 0
0 0 1
0 0 1
[row,col] = find(range_devices);
A = [row col];
uniqueVals = unique(A(:,1));
valCount = hist(A(:,1), uniqueVals)';

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by