Symsum every other step
3 次查看(过去 30 天)
显示 更早的评论
Hi everybody,
I'm trying to get a symsum runnin' with a count of every other step.
The Formula itself looks like this:

My current code
a=2:2:10
syms p [1 size_x_r_sampling_meter];
f=k^2*p
f1=symsum(f,k,a)
obvjously doesn't work...
Could you please give me a hint, how to solve this problem?
Very best
Christian
0 个评论
采纳的回答
Alan Stevens
2020-9-29
Does this help:
syms k p
a = [1 5];
f=@(k,p) (2*k)^2*p;
f1=symsum(f,k,a)
f1 =
220*p
2 个评论
Alan Stevens
2020-9-29
编辑:Alan Stevens
2020-9-30
The principle of replacing j by, say, j = 2n, and then having n go from 1 to (M-1)/2 still holds.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!