The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> System Simulators >> MATLAB digit precision
https://designers-guide.org/forum/YaBB.pl?num=1349267952

Message started by Flynn Rider on Oct 3rd, 2012, 5:39am

Title: MATLAB digit precision
Post by Flynn Rider on Oct 3rd, 2012, 5:39am

Greetings
I have been trying to import simulation data from Cadence into MATLAB. I save the simulation data in csv format and imported it into MATLAB, but the import wizard shows truncated values with only 4 digit precision while the original values taken from Cadence have upto 15 digit precision. I have attached a figure for reference. Can i enhance digit precision in MATLAB in import wizard?

Title: Re: MATLAB digit precision
Post by Maks on Oct 3rd, 2012, 6:14pm

Internally, Matlab uses double precision for its data.
By default, it displays only 5 digits.
You can increase the number of displayed digits using "format long e" command.

Check this link, or make a search on "Matlab precision" in Google:

http://homepages.math.uic.edu/~hanson/MATLAB/MATLABformat.html

Title: Re: MATLAB digit precision
Post by Flynn Rider on Oct 4th, 2012, 2:15am

Thaks Maks,

"MATLAB does its internal arithmetic in IEEE floating point precision using approximately 16 decimal digits, but the default display is only 5 decimal digits, so do not be too concerned about the digits actually displayed as MATLAB output...."
Ref: http://homepages.math.uic.edu/~hanson/MATLAB/MATLABformat.html

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.