[Solved] Matlab, find area under experimental plot

Hi all,

My first time here, greetings to everyone.

Now I have an issue I need help from. I think this is a common problem, but I can't find the solution in forum search.

I have a plot y against t with t from 0 to 30 interval 0.5 and now I want to find area under plot where, for example, t = 0.184 to 5.623. How can I do this? (i am quite noob to matlab).

I read about trapz and quads, but seems like they need the function to be defined. since mine is experimental data, i don't have the function. the purpose of calculating the area is to approximate/find the function f(t).

Any advice? Thanks a lot.