From: josep jaak on
hello

I am trying to use a LTI system for represent a linear sistem with this structure

Q(t)=(0.1773 / (1-0.824z^-1))*I(t) time step 1hr

I try with filt([0.1773],[1 -0.824],1) and works but the problem is that I also made some verification in excel and I dont have the same results, Can you tell me if I am doing a mistake or I miss something, in excel my initial condition Q(0)=0 but I changed to several and always have the diference in this part

I(t) Q(t) (excel) Q(t) Simulink
82.681 81.28995282 80.60924371
99.634 84.64802932 80.86239262
104.919 88.35211486 81.28995282
107.363 91.83760255 84.64802932
111.606 95.4619283 88.35211486
118.2 99.61748892 91.83760255
120.877 103.516303 95.4619283
122.477 107.0126057 99.61748892
123.437 110.0637672 103.516303 <<<<<
124.134 112.7015024 107.0126057
124.594 114.9565542 110.0637672
124.878 116.86507 112.7015024
125.044 118.4671189 114.9565542
125.115 119.7997955 116.86507
125.108 120.8966799 118.4671189
125.039 121.7882789 119.7997955
124.921 122.5020351 120.8966799

thank you