what's the difference between | and || in matlab??
579 views (last 30 days)
Show older comments
what's the difference between | and || in matlab??
0 Comments
Accepted Answer
More Answers (1)
Sean de Wolski
on 10 Dec 2014
Edited: Sean de Wolski
on 10 Dec 2014
| 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]
See Also
Categories
Find more on Write Unit Tests in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!