Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
fede
fede 2016 年 4 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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