Hi,

Can someone please help me to write the following code using a summation

`for i = 1:1000v(i) =y(i) - a0- a1*y(i-1)-a2*y(i-2);end`

Thanks.

Skip to content# MATLAB: Sum of a series

finite sumMATLABseriessimulation

Hi,

Can someone please help me to write the following code using a summation

`for i = 1:1000v(i) =y(i) - a0- a1*y(i-1)-a2*y(i-2);end`

Thanks.

## Best Answer