I need to plot the summation of shifted Delta functions?

2 Ansichten (letzte 30 Tage)
Nyah
Nyah am 28 Sep. 2017
Kommentiert: Jan am 28 Sep. 2017
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 Kommentar
Jan
Jan am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by