I would like to remove zeros from my matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
a=[0 0 0; 0 0 0; 1 2 3; 4 5 6]
3 commentaires
Rik
le 27 Oct 2021
@Aladdin, this is an answer to what might be a homework question. Please consider either moving your comment to the answer section (by deleting this and reposting it) or deleting your comment.
Réponses (1)
Walter Roberson
le 27 Oct 2021
a = [0 0 0; 0 0 0; 1 2 3; 4 5 6]
b = rmmissing(standardizeMissing(a, 0))
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!