Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to obtain values symbolically
1 ビュー (過去 30 日間)
表示 古いコメント
Hi! Im using Matlab version 7.9.0(R2009b) and i would like to sum e.g. first 10 terms of expression c_i*x^i, where c_i should be obtained symbolically. how should i do that, so that this expression is dependent on x / function of x (so when i enter exact number for x, i get real number - not expression with c_i).
0 件のコメント
回答 (2 件)
Azzi Abdelmalek
2013 年 2 月 22 日
編集済み: Azzi Abdelmalek
2013 年 2 月 22 日
EDIT
c=sym('c',[1 10])
x=sym('x')
f=@(x,n)sum(c(1:n).*x.^(1:n))
f(x,5)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!