Does Matlab round matrix elements to whole numbers?
Afficher commentaires plus anciens
Basically I have a matrix which is 1x51 ( a row of numbers) and I perform a calculation on each number which makes them go close to 1 for example 0.9 0.8 0.78 0.99 , why does Matlab make them all 1?
1 commentaire
Jason Ross
le 15 Fév 2013
You probably need to post the code.
Réponse acceptée
Plus de réponses (1)
No, not all MATLAB calculations result in integers, as you should be able to readily verify, e.g., by doing
>> a=sqrt(3)
a =
1.7321
If you get a different result than I've shown, by all means assume you have an unusual problem!!
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!