Matlab find an element in matrix
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nadia Bica
le 8 Juil 2015
Modifié(e) : bio lim
le 8 Juil 2015
hello, I have a matrix that has many elements and I would like to know if I have a specific element on it All my variables are symbolic at this point. I already used : [i,j] = find( x==q^2) the output: i =
[]
j =
[]
so whats this means? I Have it somewhere or not?
Réponse acceptée
Azzi Abdelmalek
le 8 Juil 2015
Modifié(e) : Azzi Abdelmalek
le 8 Juil 2015
syms q
x=[2*q q^2 5*q]
[i,j] = find(x==q^2)
The result is
i =
1
j =
2
0 commentaires
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!