I need to plot the summation of shifted Delta functions?

2 views (last 30 days)
I need to do this: Summation [Al delta( n 3l) ] for l=0:4, and n= -5:15 i have written this code, but i'm stuck what do i do further. Please help
Function of Delta: function y = dd(x) % x is a vector % We create an output vector of only 0 (our default value) y = zeros(1, length(x));
% We find indexes of input values equal to 0, % and make them 1 y(find(x==0)) = 1; Main Code: n=-5:15; l=1:4; for i=1:4 A1=A*l; x1=A1*dd1(n-3*l); stem(n,x1) end
  1 Comment
Jan
Jan on 28 Sep 2017
The formulation of the formula is not clear and the code is not readable because you forgot to use the "{} Code" button. Please improve the readability of your question.
Using "i", "l" and "1" in a code is prone to misinterpretations.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance 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!