- symsum is a symbolic command for symbolic variables.
- in matlab, don't exist the zero index, the first index is one.
- you had miss one parenthesis some where.
- the argument y, only have 2 elements.
- i think that you're confusing matlab script with another symbolic language like mathematica, cause you don't need symbolic toolbox.