Info
This question is closed. Reopen it to edit or answer.
how can I eliminate coloum with mean largest than a certain value?
1 view (last 30 days)
Show older comments
Hi I have a matrix nxn called prices, where in each column I have an Historical stock prices. I want to eliminate all columns in which the mean are largest than a certain value (for example 50)
0 Comments
Answers (1)
Azzi Abdelmalek
on 13 Apr 2016
Edited: Azzi Abdelmalek
on 13 Apr 2016
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!