Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how can I eliminate coloum with mean largest than a certain value?

2 views (last 30 days)
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)

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 13 Apr 2016
Edited: Azzi Abdelmalek on 13 Apr 2016
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]

This question is closed.

Community Treasure Hunt

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

Start Hunting!