|
"rubionelove " <rubionelove@gmail.com> wrote in message <hacp3s$rbj$1@fred.mathworks.com>...
> Hi all,
> I've two set of data, I'd like to plot the number of features detected in function of the area in pixels.
> I'd like to combine the two set of data, to have the mean of the two curves.
> The problem is that now they have not the same values on the "area in pixels column".
> How can I do that ?
As ImageAnalyst said, your question isn't clearly defined, but here is the answer to the first interpretation that comes to my mind:
a=[15728 70
11561 59
7856 46
5185 35
3053 24
1294 14
315 5];
b=[16097 47
11858 37
8220 31
5182 31
3053 24
1294 12
315 7 ];
x=linspace(315,16097,7);
y1=interp1(a(:,1),a(:,2),x,'linear','extrap');
y2=interp1(b(:,1),b(:,2),x,'linear','extrap');
clf, plot(a(:,1),a(:,2),b(:,1),b(:,2),x,y1,x,y2,x,(y1+y2)/2)
|