Eliminating channels based on coefficient of variance .
1 回表示 (過去 30 日間)
古いコメントを表示
CalebJones
2019 年 9 月 2 日
回答済み: Siriniharika Katukam
2019 年 11 月 20 日
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236683/image.jpeg)
Coeff of Varience is 7.5 which is saved in variable say thresh_cv which I dynamically getting from some header file.
Now if the mean of channel 1(column 1) is less than 7.5 then remove the channnel else keep that channel.
If mean is greater then 7.5 then remove that channel.
can somebody help me the code for all 20 channels(columns)???
1 件のコメント
Adam
2019 年 9 月 2 日
So you want to remove every channel whose mean is not presicely 7.5? (which, given floating point maths, would be all of them). I don't really know what coefficient of variance means, though I would have expected to to relate to a measure of variance rather than mean? Given the numbers you show a mean of 7.5 seems very arbitrary!
採用された回答
Siriniharika Katukam
2019 年 11 月 20 日
Hi
In case if you want to get the columns which have a mean of 7.5, you can try using "find"
K = find(mean(MATRIX) == 7.5);
requiredMatrix = MATRIX(:,K);
Hope this is what you wanted to know!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!