MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 233

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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 =
Vue de la page 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 715 716

Commentaires sur ces manuels

Pas de commentaire