MATLAB: How to define a symbolic vector

symbolicvector

Hi all,
I want to define a symbolic vector with dimension N, e.g u(1..N) and use it to do some symbolic calculations, e.g. u(1)+u(2)*u(3)+u(N)^2.
I know that syms is used to define symbols, is there anything similar in defining vectors?
Thank you.

Best Answer

a=sym('a',[1 10])