Histogram

8 views (last 30 days)
Mona Bahri
Mona Bahri on 23 Jan 2012
hi I have a histogram. and I want ti fit an diagram on it. I used histfit () but I couldn't get a reasonable results. have anyone has a solution ?
  7 Comments
the cyclist
the cyclist on 25 Jan 2012
Mona, can you give more detail about what you have, and what you are trying to accomplish? You keep giving us tiny bits of information, which makes us guess.
histfit() does sound like a function that would have done what you want. Maybe you could discuss why you found the results unreasonable. Maybe you could upload a figure that shows the results. Can you post the code you used, and the sample of data?
Mona Bahri
Mona Bahri on 25 Jan 2012
here is part of my work:
% Gaussian noise
if noise == 'gauss'
t = randn(sernumber,serlength); % generate gaussian noise series with stddev=1
end
%t_distribution noise
if noise2=='t_distribution'
V=4
t2=trnd(v,500,100);%generating t_distribution noise
end
% Weird Pareto noise
if noise == 'paret'
alpha = 4; %
rr=simpareto(sernumber,serlength,alpha)/.578; % random numbers with onesided pareto pdf
a=randn(sernumber,serlength); sig=a./abs(a); % make a random sign
t = sig.*rr; % this is symmetrically pareto-distributed around zero
end
hist(t,100)
hold on
hist(t2,100)
then I will have 2 histogram . one for Gaussian and the other for t-distribution but I need to fit a curve on these 2 Histograms.
sorry for copying my work here. I'm not good at talking about my work. :D

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!