Clear Filters
Clear Filters

problem with logical number : how minimize calculate

1 view (last 30 days)
hi,
i hope you understand my problem with pics
Input: a, x

Accepted Answer

Voss
Voss on 21 Jul 2023
a = [0 3 10 0 3 8];
x = 5;
solution = a > 0 & a < x
solution = 1×6 logical array
0 1 0 0 1 0

More Answers (0)

Categories

Find more on Multidimensional Arrays 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!