- #1

- 199

- 0

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?