I have a matrix with two columns. I want to create a new one that only contains the rows without a 0 in the second column.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kyle Reagan
le 29 Juin 2017
Réponse apportée : the cyclist
le 29 Juin 2017
I have a matrix, A, that looks as follows. My goal is to have a new one, B, that is only made of the rows that do NOT have a zero in the second column.
A = [7.36 0;
7.37 0;
7.38 2;
7.39 0;
7.45 1;
7.81 5;
7.94 6;
7.98 0]
B = [7.38 2;
7.45 1;
7.81 5;
7.94 6]
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Shifting and Sorting Matrices 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!