Want to find a specific column of needed data
32 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Prashant Funde
le 18 Nov 2015
Réponse apportée : Prashant Funde
le 18 Nov 2015
I have a matrix of B= [ ]4*25 data bits, and i have another variable which consist of one of the column of B. How can i find specific column with its number?
e.g. B=[1 1 0 1; 1 1 1 0;..........0 1 1 1]; and i want to find S=[1 0 1 1] in B.
0 commentaires
Réponse acceptée
Plus de réponses (2)
Meghana Dinesh
le 18 Nov 2015
Modifié(e) : Meghana Dinesh
le 18 Nov 2015
Have you tried using ismember? I believe you can use a combination of MATLAB functions find and ismember.
find(ismember(M,X),dim)
1 commentaire
Meghana Dinesh
le 18 Nov 2015
The "dim" should be columns. So you can take a transpose of your matrix.
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!