selection from matrix with condition
1 回表示 (過去 30 日間)
古いコメントを表示
Hi to all, actually i m having a matrix X=250*10 from which i want to choose the colomns that have an average >0.1 and a standard diviation >0.2 and put them in a new matrix 250*k ((where k depends on the colomns that satisfy the 2 (between 0 and 10)) Thank you in advance for your help with this
best regards
0 件のコメント
採用された回答
Image Analyst
2012 年 12 月 6 日
How about this:
stdX = std(X, 1)
meanX = mean(X, 1);
meetCriteria = meanX > 0.1 & stdX > 0.2
out = X(:, meetCriteria);
2 件のコメント
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!