matlab find() 用法
2017-01-11 14:02
441 查看
默认索引
a(1) = 1
a(2) = 0
a(3) = 2
a(4) = 4
条件索引
索引截取
暂时到这里了,以后如果还发现有什么好玩的再来补充。
>>a = [1, 2; 0, 4] a = 1 2 0 4 >>find(a) ans = 1 3 4
注意:输出不是0的所有的索引(按列计算的)
a(1) = 1
a(2) = 0
a(3) = 2
a(4) = 4
条件索引
>> a a = 1 3 0 4 >> find(a > 2) ans = 3 4
索引截取
>>a = [1, 3; 0, 4]; >> find(a, 2) ans = 1 3 >> find(a, 2, 'first') ans = 1 3 >> find(a, 2, 'last') ans = 3 4
暂时到这里了,以后如果还发现有什么好玩的再来补充。
相关文章推荐
- MATLAB之find的用法
- 【Matlab】find( )函数的用法
- matlab中find、sub2ind函数用法
- Matlab find()函数用法总结
- Matlab的imfilter函数用法详解
- 文件查找之find用法
- [笔记] find -exec -ok 的用法
- delphi Getclass findClass用法
- python find用法
- 简述Matlab中size()函数的用法
- find 常见用法
- matlab 中norm函数的用法
- Linux中find常见用法示例
- MATLAB getframe用法
- Matlab中findstr()与strfind()的区别
- opencv查找轮廓---cvFindContours && cvDrawCountours 用法及例子
- Matlab中fft函数的用法及关键问题详解
- c++ map.count 和map.find 的用法区别
- Matlab 括号用法
- Linux中find常见用法示例