function y=histogram(x,int);
x=sort(x)
y(1)=length(find(x-int(1)<0));
n=length(int);
for i=2:n;
  f=find(x-int(i)<0 & x-int(i-1)>=0);
  if ~isempty(f);
    y(i)=length(f);
  else;
    y(i)=0;
  end;
end;
plot(y)
