Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

2 visualizaciones (últimos 30 días)
fede
fede el 13 de Abr. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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)

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Abr. de 2016
Editada: Azzi Abdelmalek el 13 de Abr. de 2016
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by