Help on gmdistributionfit toolbox

2 ビュー (過去 30 日間)
mutah
mutah 2013 年 11 月 11 日
コメント済み: mutah 2013 年 11 月 13 日
Hi when I plot
X=0.0001:0.03:3;
y = pdf(obj,X')
the x-axis from 0 to 100 but i put X 0:3 ??
what the problem ?

回答 (1 件)

Jonathan LeSage
Jonathan LeSage 2013 年 11 月 11 日
When you plot the gmdistribution fit results, did you remember to pass in both the x and y arguments to the plot function?
X = 0.0001:0.03:3;
y = pdf(obj,X');
% Plot both x,y
plot(X,y);
If you don't specify an x-vector, the plot function will just plot the y-values against their location in the y-vector (the indices).
Hope this helps!
  1 件のコメント
mutah
mutah 2013 年 11 月 13 日
thanks you alot

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by