MATLAB COMPILER RELEASE NOTES User's Guide Page 233

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 232
Programming
7-23
% Comment in file
1 2 3
4 5 6
In previous releases,
t = importdata('test.txt',',')
returned a numeric array:
t =
1 2 3
4 5 6
In this release, the same code returns a cell array:
t =
'% Comment in file'
'1 2 3'
'4 5 6'
If you remove the incorrect comma delimiter,
t = importdata('test.txt')
importdata returns a struct array:
t =
data: [2x3 double]
textdata: {'% Comment in file'}
Exponents Print with Two Digits
In previous releases, functions that printed floating-point values with exponents used
three digits for the exponent on Windows systems, but two digits on any other system.
Now, these functions use two digits for the exponent on all systems.
For example,
str = sprintf('%e',pi)
always returns
str =
Page view 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 715 716

Comments to this Manuals

No comments