Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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)

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-13
编辑:Azzi Abdelmalek 2016-4-13
largest_value=50
idx=mean(A)>largest_value
A(:,idx)=[]

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by