Filter löschen
Filter löschen

count bins

1 Ansicht (letzte 30 Tage)
George
George am 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?

Akzeptierte Antwort

Matt Fig
Matt Fig am 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 Kommentare
George
George am 13 Feb. 2011
The histc(datax(:), -5*sX:step:5*sX) worked just fine!Thank you!
Matt Tearle
Matt Tearle am 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...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Historical Contests finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by