Borrar filtros
Borrar filtros

cumulative sum in matrix

1 visualización (últimos 30 días)
Joseph Lee
Joseph Lee el 23 de Oct. de 2017
Respondida: Stephen23 el 23 de Oct. de 2017
How do i generate a 5x10 matrix such as:
Z1 Z2 Z3 ... Z4 Z5 Z6 Z7 Z8 Z9 Z10 ( each Z is a random number)
Z1+Z1' Z2+Z2' Z3+Z3' ( cumulative sum of previous Z value with Z', Z' is a new random number)
.
.
Z1+Z1'+Z1''+Z1'''+Z1''''

Respuesta aceptada

Stephen23
Stephen23 el 23 de Oct. de 2017
cumsum(rand(5,10),1)

Más respuestas (0)

Categorías

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