problem with logical number : how minimize calculate

1 次查看(过去 30 天)
hi,
i hope you understand my problem with pics
Input: a, x

采纳的回答

Voss
Voss 2023-7-21
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by