Clear Filters
Clear Filters

count bins

1 view (last 30 days)
George
George on 12 Feb 2011
Hello, i need help in counting bins. I have this command in mathematica:
nBin = BinCounts[dataX, {-5 sX, 5 sX, step}]
,where datax is a matrix. How can i possible write it in matlab?

Accepted Answer

Matt Fig
Matt Fig on 12 Feb 2011
I think you might need to use the HISTC function. Have a look at the help to see if it meets your needs.
  7 Comments
George
George on 13 Feb 2011
The histc(datax(:), -5*sX:step:5*sX) worked just fine!Thank you!
Matt Tearle
Matt Tearle on 13 Feb 2011
@WR: sorry, I missed George's first comment, so I missed the context of the discussion. Another thing to add to wish list, I think...

Sign in to comment.

More Answers (0)

Categories

Find more on Historical Contests in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!