Matlab code to determine and plot impulse response
Determining and plotting the impulse response of the signal. 


You are confusing signals and systems. Systems have impulse responses, signals don't. You can calculate the output signal of a linear time invariant system for any given input vy convolving the input signal with the impulse response of the system. 

% create the impulse response
M = 1; % MATLAB indexing offset
N = 1000;
h = zeros(1001,1); 
h(M+0) = 1;
h(M+1000) = 1;
stem(h);