MATLAB COMPILER RELEASE NOTES Betriebsanweisung Seite 233

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 716
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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 =
Seitenansicht 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 715 716

Kommentare zu diesen Handbüchern

Keine Kommentare