I have a file consisting of values ranging from 0.1 to 1.3e12. I have been trying it to store in the same array but its not working. Can anybody help?
Asked
Active
Viewed 1,621 times
-1
-
1what do you mean by not working? how large is the file - now many values? – mathematician1975 Jul 01 '12 at 08:46
-
2@user1483180 Where's your code? Without code, no-one can tell you where you went wrong... – Eitan T Jul 01 '12 at 09:03
-
3@user1483180: I'm thinking your issue has to do with number formatting (when printed in the command prompt)? need more info.. – Amro Jul 01 '12 at 09:11
-
1Sure its working. help format. – Jul 01 '12 at 13:02
1 Answers
1
The numbers 0.1 and 1.3e12 are both stored in floating point data type. The double
type is the default for storing either of these in Matlab. So the answer is Yes you can store them in the same matrix.
What you are actually referring to is the way the numbers are formatted for viewing. Please have a look at the documentation for format

ephsmith
- 398
- 3
- 12