User`s guide
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 =