Borrar filtros
Borrar filtros

How can ı calculate the mean of an interval?

11 visualizaciones (últimos 30 días)
Ege Gurtan
Ege Gurtan el 28 de Ag. de 2017
Respondida: KSSV el 28 de Ag. de 2017
There are 300 elements in my vector (vector A). I want to calculate the mean of all the elements from 200th to 300th element. How do I do that?

Respuesta aceptada

KSSV
KSSV el 28 de Ag. de 2017
A = rand(300,1) ;
iwant = mean(A(200:300)) ;

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by