% m-file: demo_6.m
%
% (C) PK, 08/11/2018;

clc; clear; close all;

N=2^14;
x=rand(N,1);
%y=x.^2-1;
y=exp(x);
K=30;
[h,b]=hist(y,K);

    figure(1);
        bar(b,h,1); grid on;

% EOF;