I have an array
X = 1:10
using find to check for an element returns
find(X==10)
ans
10
I would like to know how to return a logical array instead of a single value.

 採用された回答

KSSV
KSSV 2020 年 8 月 30 日

0 投票

idx = x==10

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

リリース

R2019b

タグ

質問済み:

2020 年 8 月 30 日

回答済み:

2020 年 8 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by