I have data similar to this:
x = 0:0.1:10;
y = exppdf(x,2);
plot(x,y, 'o')
and then I want to have some resampled data close to them, but when I use the command below , the resampled data are really far from the original one!
[resampling, bootsam]=bootstrp(100, 'corr', x,y);
plot(x,y(bootsam(:,100)), 'r*')
Could you please help me? I guess I need to change option 'corr' in the bootstrp command.