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 配列に適用するにはどうすればよいですか?
例: and([1 0 0]) = 0、and([1 1 1]) = 1。
あなたが持っている場合:
a = [1,0,0]
それからあなたは言うことができます:
any(a) %% which is equivalent to 'or' all(a) %% which is equivalent to 'and'