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.
如果 Matlab 中的find()函数无法找到给定条件的任何内容,则返回并清空 1x0 矩阵。如何检查是否确实如此 - 在提供的矩阵中没有满足给定的标准?
find()
检查isempty
isempty
b = [ 1 2 3 5 ]; a = find( b == 4 ); if isempty( a ) fprintf(1,'not found\n'); end