The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jun 19th, 2019, 10:30pm
Pages: 1
Send Topic Print
MATLAB digit precision (Read 3930 times)
Sx_cut
Junior Member
**
Offline



Posts: 16
Dresden, Germany
MATLAB digit precision
Oct 03rd, 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?
Back to top
 

prec.JPG
View Profile   IP Logged
Maks
Community Member
***
Offline



Posts: 41
San Jose
Re: MATLAB digit precision
Reply #1 - 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
Back to top
 
 
View Profile   IP Logged
Sx_cut
Junior Member
**
Offline



Posts: 16
Dresden, Germany
Re: MATLAB digit precision
Reply #2 - 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
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2019 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.