what's the difference between | and || in matlab??
388 ビュー (過去 30 日間)
古いコメントを表示
what's the difference between | and || in matlab??
0 件のコメント
採用された回答
その他の回答 (1 件)
Sean de Wolski
2014 年 12 月 10 日
編集済み: Sean de Wolski
2014 年 12 月 10 日
| applies to each element in the array, || applies to a scalar condition:
[1 0 1] | [ 0 0 1]
v.
[1 0 1] || [ 0 0 1]
参考
カテゴリ
Help Center および File Exchange で Write Unit Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!