How do I change from sig figs to a normal number?
2 views (last 30 days)
Show older comments
Ashlianne Sharma
on 8 Nov 2020
Commented: Ameer Hamza
on 8 Nov 2020
Hi All!! below I included a picture of my screen and what I see. In my command window, I am getting numbers in significant figures. So like The semi major axis value in my window is showing up as 2.6653e+04, how do I change this to make it 26653?
0 Comments
Accepted Answer
Ameer Hamza
on 8 Nov 2020
Edited: Ameer Hamza
on 8 Nov 2020
Replace '%d' in your fprintf() statements to '%f'. If you don't want decimal part the use '%.0f'.
2 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!