Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R に matlab 関数 histc と同等の関数はありますか? ベクトルとビンは数値です。
[ countInBin, binIndexOfVectorElement ] = histc( vector, bins )
どこ:
bins = min(vector) : increment : max( vector )
と
length( binIndexOfVectorElement ) = length( vector )
パッケージ pracma には、その matlab の対応物と同様に機能する関数 histc があります。