Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
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)

Risposte (1)

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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by