How do I calculate the partial area under a curve with MATLAB?
问题 I am a newbie to matlab and trying to find the area under the curve (AUC) for a part of the graph not the entire graph. I am interested to calculate separate AUC from 2 regions; one from -350 to -100 and other from -100 to +150 present on the x axis. how can I calculate AUC for these portion of the graph (not for entire x-axis)? not enough reputation to provide the figure. If someone from the community can provide a matlab code. Every couple of values in the data set correspond to x,y