If you work on simulating a system you can generate an impulse as the sum of a positive step and a negative step with a time delay in between. Yous hould take care of the integration time step which should be small with respect to the delay between the 2 steps.
yes. i am working with MATLAB, but i couldnt be able to find the inbuilt command for impulse response of filter impz will work for finite or infinite (FIR or IIR).