Hello All,
I am trying to calculate shaded area of my x and y data given in the excel sheet. I am using the following code which calculates the entire area, but I want to subtract the un-shaded area from.
x = xlsread('filename','A:A');
y = xlsread('filename','B:B')
Integral = trapz(x,y);
area(x, y);
;
Is there anyone help me with the correct code please ?. Your response will be appreciated too much.
Best Answer