MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Counting the number of data points in a plot 

Subject: Counting the number of data points in a plot From: CNN Date: 27 Jul, 2010 12:17:05 Message: 1 of 11 
Good day, 
Subject: Counting the number of data points in a plot From: us Date: 27 Jul, 2010 12:24:04 Message: 2 of 11 
"CNN " <cnln2000@yahoo.co.uk> wrote in message <i2mio0$kou$1@fred.mathworks.com>... 
Subject: Counting the number of data points in a plot From: CNN Date: 27 Jul, 2010 12:57:04 Message: 3 of 11 
'sum' will add the values of the data. I need to know the number of data that are positive and the number that are negative. And I can't use legend because I can only have one legend and I'll need 4 notations. I was planning to use the function 'text' as soon as I figure it out. 
Subject: Counting the number of data points in a plot From: us Date: 27 Jul, 2010 13:01:07 Message: 4 of 11 
On Jul 27, 2:57 pm, "CNN " <cnln2...@yahoo.co.uk> wrote: 
Subject: Counting the number of data points in a plot From: CNN Date: 27 Jul, 2010 13:49:24 Message: 5 of 11 

Subject: Counting the number of data points in a plot From: us Date: 27 Jul, 2010 13:59:07 Message: 6 of 11 
"CNN " <cnln2000@yahoo.co.uk> wrote in message <i2mo54$ghl$1@fred.mathworks.com>... 
Subject: Counting the number of data points in a plot From: Walter Roberson Date: 27 Jul, 2010 14:11:20 Message: 7 of 11 
CNN wrote: 
Subject: Counting the number of data points in a plot From: CNN Date: 27 Jul, 2010 14:12:49 Message: 8 of 11 

Subject: Counting the number of data points in a plot From: us Date: 27 Jul, 2010 14:17:11 Message: 9 of 11 
On Jul 27, 4:12 pm, "CNN " <cnln2...@yahoo.co.uk> wrote: 
Subject: Counting the number of data points in a plot From: Andy Date: 27 Jul, 2010 14:19:25 Message: 10 of 11 
> By the way, does sum give the number of data values that are 1 or does it add up all the 1s? 
Subject: Counting the number of data points in a plot From: us Date: 27 Jul, 2010 14:23:04 Message: 11 of 11 
us 
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.