- #1
O.J.
- 199
- 0
that is 0 everywhere and 1 at 0. the code I wrote was this:
n = -20:1:20;
if n==0
imp = 1
else
imp = 0;
end
>> stem (n, imp)
? Error using ==> stem at 40
X must be same length as Y.
but i got that error.
Using vectors and matrices is useless cause the delta function cannot be defined at 0 r negative values... can you please guide me through this?
n = -20:1:20;
if n==0
imp = 1
else
imp = 0;
end
>> stem (n, imp)
? Error using ==> stem at 40
X must be same length as Y.
but i got that error.
Using vectors and matrices is useless cause the delta function cannot be defined at 0 r negative values... can you please guide me through this?