a=[1 2 3 0 4 5 6 7];
i=find(a==4)
即可
转载:http://wnznttkl.blog.163.com/blog/static/4657209920109306713901/
本文介绍如何在MATLAB中使用find函数来查找数组中特定元素的位置。通过实例演示,帮助读者掌握find函数的基本用法。
a=[1 2 3 0 4 5 6 7];
i=find(a==4)
即可
转载:http://wnznttkl.blog.163.com/blog/static/4657209920109306713901/
2101
4908

被折叠的 条评论
为什么被折叠?