Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Gaussian Mixture
Date: Wed, 25 Mar 2009 19:47:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <gqe1nm$crg$1@fred.mathworks.com>
References: <gqc6nk$h5n$1@fred.mathworks.com> <gqdc34$go5$1@fred.mathworks.com> <gqdddi$mfe$1@fred.mathworks.com> <gqdh51$qju$1@fred.mathworks.com> <gqdlk1$l78$1@fred.mathworks.com> <gqdqbd$44c$1@fred.mathworks.com> <gqdvrp$6c1$1@fred.mathworks.com> <gqe16p$6lh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238010422 13168 172.30.248.37 (25 Mar 2009 19:47:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 25 Mar 2009 19:47:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1731476
Xref: news.mathworks.com comp.soft-sys.matlab:527724


"Matt " <xys@whatever.com> wrote in message <gqe16p$6lh$1@fred.mathworks.com>...
> "Jose Valerio" <lapenda@gmail.com> wrote in message <gqdvrp$6c1$1@fred.mathworks.com>...
> 
> > plot(y,xi)
> 
> I don't understand your last line. Why is 'y' plotted on the x-axis?
>  

Never mind the last line. It should be the other way. Now I'm up to here:

x = -5:0.1:5;
y = normpdf(x,-2,1);
plot(x,y)
xi = normpdf(x,2,1);
hold on
plot(x,xi)

r = y + xi;
figure
plot(r)

figure
cdf_sum = cumsum(y + xi);
plot(cdf_sum)

????