**Info**

This question is closed. Reopen it to edit or answer.

# How to obtain values symbolically

1 view (last 30 days)

Show older comments

##### 0 Comments

### Answers (2)

Azzi Abdelmalek
on 22 Feb 2013

Edited: Azzi Abdelmalek
on 22 Feb 2013

EDIT

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

x=sym('x')

f=@(x,n)sum(c(1:n).*x.^(1:n))

f(x,5)

##### 8 Comments

Walter Roberson
on 23 Feb 2013

If that is the complete instruction you are given, then the c_i are just the symbolic variables, and you will not be able to complete the second part.

If there are instructions before that point, then you might be able to proceed further.

This question is closed.

### See Also

### Community Treasure Hunt

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

Start Hunting!