Histogram

8 次查看(过去 30 天)
Mona Bahri
Mona Bahri 2012-1-23
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 个评论
the cyclist
the cyclist 2012-1-25
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 2012-1-25
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by