MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Compute probability mass function on a predefined ... 

Subject: Compute probability mass function on a predefined grid without loops From: Massimo Date: 17 Aug, 2011 20:50:09 Message: 1 of 8 
Hi, I have been trying for a while and with no success to solve the following simple problem without using "for" loops. 
Subject: Compute probability mass function on a predefined grid without loops From: Matt J Date: 18 Aug, 2011 04:29:08 Message: 2 of 8 
"Massimo" <giovanma@bc.edu> wrote in message <j2h9i1$563$1@newscl01ah.mathworks.com>... 
Subject: Compute probability mass function on a predefined grid without loops From: Massimo Date: 18 Aug, 2011 21:07:08 Message: 3 of 8 
"Matt J" wrote in message <j2i4ek$lb1$1@newscl01ah.mathworks.com>... 
Subject: Compute probability mass function on a predefined grid without loops From: Matt J Date: 18 Aug, 2011 23:28:09 Message: 4 of 8 
Here's one way, which uses this FEX tool 
Subject: Compute probability mass function on a predefined grid without loops From: Massimo Date: 19 Aug, 2011 19:05:25 Message: 5 of 8 
"Matt J" wrote in message <j2k769$ker$1@newscl01ah.mathworks.com>... 
Subject: Compute probability mass function on a predefined grid without loops From: Bruno Luong Date: 19 Aug, 2011 19:47:09 Message: 6 of 8 
No need to compute wtlower and wtupper from s, it can be computed directly from idx. 
Subject: Compute probability mass function on a predefined grid without loops From: Matt J Date: 19 Aug, 2011 20:47:10 Message: 7 of 8 
"Massimo" <giovanma@bc.edu> wrote in message <j2mc5l$kmq$1@newscl01ah.mathworks.com>... 
Subject: Compute probability mass function on a predefined grid without loops From: Matt J Date: 19 Aug, 2011 21:01:12 Message: 8 of 8 
"Matt J" wrote in message <j2mi4e$bhm$1@newscl01ah.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.