配列にNaN値が含まれているかどうかを確認する必要があるソリューションを作成しています。そうでない場合は、先に進んでデータに対して関数を実行できます。これが私の現在の解決策です:
if find(isnan(inputData))
% Nothing goes here since I only want the function to run if the 'if' statement fails
else
doFunction(inputData);
end
'if'ステートメントを否定するエレガントな方法はありますか。したがって、空の最初の句を回避しますか?