close allclear alln=-2:2x(n~=0)=0x(n==0)=1subplot(3,1,1)stem(n,x)w(n~=2)=0w(n==2)=1subplot(3,1,2)stem(n,w)y=x-nsubplot(3,1,3)stem(n,y)
MATLAB: Not able to subtract two discrete signals
not able to subtract two discrete signals
not able to subtract two discrete signals
close allclear alln=-2:2x(n~=0)=0x(n==0)=1subplot(3,1,1)stem(n,x)w(n~=2)=0w(n==2)=1subplot(3,1,2)stem(n,w)y=x-nsubplot(3,1,3)stem(n,y)
Best Answer