How to convert the values greater than one to less than one for a matrix stored in workspace
Afficher commentaires plus anciens
I am having a matrix size (300x2000) stored in workspace.
In that some of the values are greater than 1 for example (1.345, 1.678, 2.345, 3.456, 4.456,....)
I want to changes those values to ( 0.345, 0.678, 0.345,0.456,....)
Could anyone help me how to change those values .
Réponses (2)
M = [1.345, 1.678, 2.345, 3.456, 4.456]
M = mod(M,1)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!