How to find element index in a matrix

2 vues (au cours des 30 derniers jours)
Boni_Pl
Boni_Pl le 11 Août 2019
Commenté : Boni_Pl le 13 Août 2019
Hello sir kindly help me to find position of element '1' in matrix 'v'. i.e. (3,3).ele.png

Réponse acceptée

SYED IMTIAZ ALI SHAH
SYED IMTIAZ ALI SHAH le 11 Août 2019
Modifié(e) : SYED IMTIAZ ALI SHAH le 11 Août 2019
[c d] = find(v == 1);
e = [c d]
  1 commentaire
Boni_Pl
Boni_Pl le 13 Août 2019
Thank you Sir

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by