I would like to remove zeros from my matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
a=[0 0 0; 0 0 0; 1 2 3; 4 5 6]
3 Commenti
Rik
il 27 Ott 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.
Risposte (1)
Walter Roberson
il 27 Ott 2021
a = [0 0 0; 0 0 0; 1 2 3; 4 5 6]
b = rmmissing(standardizeMissing(a, 0))
0 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!