Finding the average by excluding some values

39 visualizaciones (últimos 30 días)
ganesh kumar patamsetti
ganesh kumar patamsetti el 11 de Sept. de 2019
Respondida: Stephen23 el 11 de Sept. de 2019
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

Respuestas (1)

Stephen23
Stephen23 el 11 de Sept. de 2019
>> 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

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by