%
s=tf('s')

%time constant
tau = 10*10e-6;

%High pass filter / capacitor charging
G=(1/(1+s*tau))

Gd = c2d(G, 1e-5)

%continuous tome domain step response
step(Gd)
hold on
t = 0:1e-5:10e-4
v = 1-exp(-1/(tau).*t)

stem(t, v)

