From: studentim D on
i need to write a script which do cumsum

input: 1 3 5
output 1 4 9

like cumsum , but avoiding cumsum function and no loops
!
From: Bruno Luong on
log(cumprod(exp(a)))

;-)

Bruno
From: Bruno Luong on
More seriously

filter(1,[1 -1],a)

Bruno
From: studentim D on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hrblbp$5gh$1(a)fred.mathworks.com>...
> log(cumprod(exp(a)))
>
> ;-)
>
> Bruno



what i need to write in the command windowe ? i'm new to matlab.....
From: Bruno Luong on
If you are new to Matlab, you MUST read this document:

http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/bqr_2pl.html

Bruno
 |  Next  |  Last
Pages: 1 2 3
Prev: How to create a 3d cube
Next: DFITTOOL