Borrar filtros
Borrar filtros

sum in matrix

1 visualización (últimos 30 días)
rami
rami el 2 de Feb. de 2012
Hi if i have x matrix from 1 to i have many different value and i want creat a new matrix y where
y(1)=x(1)
y(2)=x(1)+x(2)
y(3)=x(1)+x(2)+x(3)
y(i)=x(1)+...+x(i)
how i can make it thx

Respuesta aceptada

James Tursa
James Tursa el 2 de Feb. de 2012
y = cumsum(x);
  1 comentario
rami
rami el 2 de Feb. de 2012
Thx

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB 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