How to obtain a logical array?

1 visualizzazione (ultimi 30 giorni)
Deepa Maheshvare
Deepa Maheshvare il 30 Ago 2020
Risposto: KSSV il 30 Ago 2020
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.

Risposta accettata

KSSV
KSSV il 30 Ago 2020
idx = x==10

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by