Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
fede
fede am 13 Apr. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 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)

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 13 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 13 Apr. 2016
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by