Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

2 vues (au cours des 30 derniers jours)
fede
fede le 13 Avr 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
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)

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 13 Avr 2016
Modifié(e) : Azzi Abdelmalek le 13 Avr 2016
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by