MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > matrix and pdf 

I have a onecolumn matrix with zeros and ones. I want a way to count how many zeros and how many ones there are and then plot a probability density function like these: In the xaxis I should have the wto values 0 and 1 and in the yaxis their frequency (how many 1 and 0). That is, I'll only have two points in the graph but I need to plot a 'wave' over these two points and not just a line that will just join them. 
"Konst " <konstance1@hotmail.com> wrote in message <ijtve1$stn$1@fred.mathworks.com>... 
"someone" wrote in message <iju1qu$t5l$1@fred.mathworks.com>... 
"Konst " <konstance1@hotmail.com> wrote in message <iju69t$5nq$1@fred.mathworks.com>... 
"someone" wrote in message <ijubnp$bg8$1@fred.mathworks.com>... 
Konst: 
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.