How to obtain a logical array?

1 回表示 (過去 30 日間)
Deepa Maheshvare
Deepa Maheshvare 2020 年 8 月 30 日
回答済み: KSSV 2020 年 8 月 30 日
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 日
idx = x==10

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by