how to extract special elements from a matrix
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I have a matrix, let say M1 = [1,0,0,8;0,0,15,0;0,0,0,0;7,0,0,0].
How can I extract only non-zero elements to another matrix M2.
Thank you.
0 commentaires
Réponses (2)
Voir également
Catégories
En savoir plus sur Creating and Concatenating 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!