MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > PDF in matlab not the same as PDF in Excel 

Subject: PDF in matlab not the same as PDF in Excel From: S Date: 11 Aug, 2010 23:07:04 Message: 1 of 7 
Ok I am really confused. I have a file with 30000 data points, that varies between 0 and 1. I can create a pdf plot of this data in Excel using frequency command, and say a hundred bins between 0.01 and 1. Now if I try to do the same in Matlab, using either hist or histc, the values I get in the bins are different to excel. Why is this? And how can I generate a pdf plot in Matlab that is the same in Excel? Would appreciate any help you could give me. I've spent many hours on this. Many thanks. 
Subject: PDF in matlab not the same as PDF in Excel From: Roger Stafford Date: 12 Aug, 2010 00:14:04 Message: 2 of 7 
"S " <enxss10@nottingham.ac.uk> wrote in message <i3vaeo$ggp$1@fred.mathworks.com>... 
Subject: PDF in matlab not the same as PDF in Excel From: Safa Date: 12 Aug, 2010 00:32:20 Message: 3 of 7 
"S " wrote in message <i3vaeo$ggp$1@fred.mathworks.com>... 
Subject: PDF in matlab not the same as PDF in Excel From: Roger Stafford Date: 12 Aug, 2010 00:55:06 Message: 4 of 7 
> Thanks for your suggestion. I have read histc documentation several times. It gives the following equation: 
Subject: PDF in matlab not the same as PDF in Excel From: Safa Date: 12 Aug, 2010 23:09:04 Message: 5 of 7 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <i3vgp9$io5$1@fred.mathworks.com>... 
Subject: PDF in matlab not the same as PDF in Excel From: Walter Roberson Date: 12 Aug, 2010 23:32:05 Message: 6 of 7 
Safa wrote: 
Subject: PDF in matlab not the same as PDF in Excel From: Steven_Lord Date: 13 Aug, 2010 14:02:04 Message: 7 of 7 

No tags are associated with this thread.
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.