matlab:统计矩阵中某元素的个数

H=randint(3)

length(find(H==1))


摘自http://www.ilovematlab.cn/thread-141513-1-1.html

你可能感兴趣的:(2.,MATLAB学习笔记)