Hi all,

I have an array of 3000 points which when plotted against a time array form a function. I need to plot the instantaneous (NOT cumulative) integral against time and I am unsure how to do this. I've looked at trapz, quad and a few other functions but they don't seem to be giving me what I want. Can somebody please help me out (MATLAB newbie here)?