MATLAB: Continuous/Discrete Simulink Problem

continuousdiscretetransfer function

Hey guys
When I use a transfer function 1/(s+1) with input of a constant 1 the output is a signal with amplitude 1 and constant time of 4 s.
But when I do the same using 1/(z+1), a discrete transfer function, the result is an impulse of 10^307.
Why of this?

Best Answer

If you want to discretize your system
N=1
D=[1 1]
h=tf(N,D) % continuous transfer function
ts=4 % sampletime
g=c2d(h,ts) % your discrete system