How to define a symbolic vector

2 views (last 30 days)
Likun
Likun on 9 Dec 2013
Commented: Likun on 10 Dec 2013
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 9 Dec 2013
a=sym('a',[1 10])

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!