what's the difference between | and || in matlab??
596 次查看(过去 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 中查找有关 Outputs 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!