How to round up all components of a matrix to nearest integer number
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohammed Kassem
le 14 Avr 2019
Réponse apportée : Image Analyst
le 14 Avr 2019
Hi,
Does anyone know how I can round this 3x3 matrix and take the absolute value of all elements :
M=
5.421 -5.532 0.532
-4.223 6.543 9.334
1.976 -5.123 7.872
to this
M=
5 6 1
4 7 9
2 5 8
0 commentaires
Réponse acceptée
Plus de réponses (0)
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!