# How do I integrate a graph in matlab imported from simulink?

1. Sep 28, 2008

### mous3

How do I integrate this in MatLab. I need the correct syntax.
The formula is:

HIC = ({[1/(t2-t1)][Sa(t) dt]}^2.5 )(t2-t1) ;condition[t2-t1 less than or equal to 15ms]

the S is integration sign with limits from t1 to t2

so it should read (one over t2 minus t1) multiply (integration of a(t) from t1 to t2) and the WHOLE thing power 2.5 and then multiply with (t2 minus t1)

I exported my graph from simulink's scope. and I tried followings but failed:
dt = 0.01