but i got a problem;I am trying to do density estimation.
here is the m-file
%--------------(density estimation)------------------------------
clear all
data=[118,50;151,13;152,17;156,202;208,43;256,402;260,204;263,415;] ;
[bandwidth,density,X,Y]=kde2d(data);
contour3(X,Y,density,50), hold on
plot(data(:,1),data(:,2),'r.','MarkerSize',5)
%------------(density estimation)------------------------------(end)
and an error happened
??? Error using ==> fzero at 293
The function values at the interval endpoints must
differ in sign