Matlab always gives me rounded answers. How do I change it?
20 views (last 30 days)
Show older comments
I'm trying to use the solve function on my MATLAB but it keeps on outputing answers up to 5 digits only. I would really like to increase the precision of my answers.

I tried using the format function but it's still rounding off. I already have long as my preference in command window>text display>numeric format and variable>format>default array format.
0 Comments
Answers (1)
Walter Roberson
on 18 May 2021
Something in your code has called
digits(4)
You should call digits() passing in the number of digits you want to use.
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!