David
unread,Apr 14, 2012, 7:05:14 AM4/14/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi Filip,
finally a did it as follows: (data_x and data_y are values, which you want to calculate at hist3)
x = min_x : step : max_x; % axis x, which you want to see
y = min_y : step : max_y; % axis y, which you want to see
[X,Y] = meshgrid(x,y); % important for "surf" - makes defined grid
pdf = hist3([data_x , data_y],{x y}); % standard hist3 (calculated for yours axis)
pdf_normalize = (pdf ' ./ length(data_x); % normalization means devide it by length of
% data_x (or data_y)
figure()
surf(X,Y,pdf_normalize)
Is it helpful for you?