how can i aproximate /modify long numbers
Afficher commentaires plus anciens
a=2.65987 b=abs(2.6599-2.65987) which equals 3.0000-e05 ,after using fprintf('%0.7f\n',Eabs) i got 0.0000300
how can i get from 0.0000300 to 0.0000299 ? i also tried the round command didn't receive the desired value , also if i want to modify again let's say 2.6599 into 2.6598 after using the fprintf('%0.5g\n',a) command on the original value to how do i do it ? . I'm a BEGINNER in matlab ,i'd very much appreciate more than 1 solution (if possible and if i'm not asking for too much ) for learning purposes :) ,after browsing the mathworks website i've found that in the fprintf command i can put either f or g letters ,are there other combinations of the fprintf command ? or other letters ,if so what do they do ?
Réponse acceptée
Plus de réponses (0)
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!