Finding the average by excluding some values

41 次查看(过去 30 天)
Area= [ 1 2 3 4 5 1 1 1 1 12 2 3 4 5 121 145 190 500.............. ]
It has 500 values ranging from 1 to 1000
I need to exclude the values ranging from 1 to 10 and find the average (mean )of the other values.
Can anyone help
Thanks in advance

回答(1 个)

Stephen23
Stephen23 2019-9-11
>> Area= [ 1 2 3 4 5 1 1 1 1 12 2 3 4 5 121 145 190 500];
>> mean(Area(Area>10))
ans = 193.6

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by