Symsum every other step
2 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Alan Stevens
on 29 Sep 2020
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 Comments
Alan Stevens
on 29 Sep 2020
Edited: Alan Stevens
on 30 Sep 2020
The principle of replacing j by, say, j = 2n, and then having n go from 1 to (M-1)/2 still holds.
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!