August 13th, 2007, 10:46 am
Hi All,Is there an inbuilt matlab command for performing chain (recirsive or I don't know what to call it), addition and multiplication.In the sense, a=[1, 2, 3, 4]Applying rcursive_addition(a) should yield [1, 1+2, 1+2+3, 1+2+3+4].And similarly multiplication.I do not want to use 'for' loop.Thanks for your attention.