(Matlab 2013) Specify Number of Decimal Digits When Reading In a Number

6 views (last 30 days)
This is the argument that I have to read in a number of 6 decimal digits (1.123456) but the program reads only up to 4 decimal digits (which is what I think the default setting?). I tried using
but it didn't work. It only gives me an error. Any help will be appreciated!

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 24 Apr 2016
Edited: Azzi Abdelmalek on 24 Apr 2016
Or use
format long

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by