Logical Indexing with Condition Involving Functions
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Suppose I created a function F, and I want to find all elements a in an array A such that F(a) is some value of the function. Is there any way to do this with logical indexing (or some other method)? I tried to use idx = (F(A) == 1), but it has been giving me error messages about different numbers of elements. Thanks in advance!
2 Commenti
Stephen23
il 5 Mag 2021
"but it has been giving me error messages about different numbers of elements"
Please show the complete error message. This means all of the red text.
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!