필터 지우기
필터 지우기

count bins

조회 수: 1 (최근 30일)
George
George 2011년 2월 12일
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?

채택된 답변

Matt Fig
Matt Fig 2011년 2월 12일
I think you might need to use the HISTC function. Have a look at the help to see if it meets your needs.
  댓글 수: 7
George
George 2011년 2월 13일
The histc(datax(:), -5*sX:step:5*sX) worked just fine!Thank you!
Matt Tearle
Matt Tearle 2011년 2월 13일
@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...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Historical Contests에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by