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