a=[1 2 3 0 4 5 6 7]; i=find(a==4) 即可 转载:http://wnznttkl.blog.163.com/blog/static/4657209920109306713901/