-1

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?

Chris
  • 44,602
  • 16
  • 137
  • 156
SooryaS
  • 42
  • 4

1 Answers1

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