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 的功能 histc 与 matlab 对应的功能类似