Hello! I need some help regarding a project
Show older comments

How can I write a combination between a sum and a dirac? I have the following function:
symsum(((-1)^k)*dirac(t-k*25), k, -Inf, Inf)
function [ rez ] = test2( t ) rez = symsum(((-1)^k)*dirac(t-k*25), k, -Inf, Inf) end
>> test = 0:25
test =
Columns 1 through 22
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Columns 23 through 26
22 23 24 25
>> test2(test) Undefined function or variable 'k'.
Error in test2 (line 2) rez = symsum(((-1)^k)*dirac(t-k*25), k, -Inf, Inf)
Accepted Answer
More Answers (0)
Categories
Find more on Test Execution 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!