How can I make a new vector by applying operations from an old vector?

1 visualización (últimos 30 días)
I have a column vector
and I want to create a new column vector out of the previous one
I'm specifically having issues with indexing the first element since I tried to use a summation to define each element of the new column vector as
.

Respuestas (1)

madhan ravi
madhan ravi el 27 de Jun. de 2020
Simply use diff(...)
  2 comentarios
Johanna Alumbro
Johanna Alumbro el 27 de Jun. de 2020
Thanks! I'm new to MATLAB. I was wondering how I can retain the first element then do diff with succeeding elements?
madhan ravi
madhan ravi el 27 de Jun. de 2020
Just add zero as the first element.

Iniciar sesión para comentar.

Categorías

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