How to Shorten This Logical Expression?
12 views (last 30 days)
Show older comments
Rightia Rollmann
on 14 Aug 2016
Answered: Azzi Abdelmalek
on 14 Aug 2016
What is the best way to rewrite A in the shortest way?
B = 1:14;
A = B == 1 | B == 2 | B == 3 | B == 7 ;
0 Comments
Accepted Answer
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!