function [sys,x0,str,ts]=mdlInitializeSizes
sizes = simsizes;
sizes.NumContStates = 0;
sizes.NumDiscStates = 1;
sizes.NumOutputs = 1;
sizes.NumInputs = 1;
sizes.DirFeedthrough = 1;
sizes.NumSampleTimes = 1;
sys = simsizes(sizes);
x0 = [0 0];
str = [];
ts = [1e-6];
function sys=mdlUpdate(t,x,u)
to=1e-6;
d=(u(1)-x(1))/to;
sys=[u(1) d];
function sys=mdlOutputs
sys=x(2);