MATLAB FINANCIAL DERIVATIVES TOOLBOX Instrukcja Użytkownika Strona 98

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 119
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 97
97
name variable_name has components like: NaN or Inf, then these are saved
as text and not numbers in the saved txt file.
Concerning the options in the calling syntax, this can take the following
values for ASCII data saves (Table 13):
-ascii 8-digit ASCII format
-ascii -double 16-digit ASCII format
-ascii -tabs delimits with tabs
-ascii -double -tabs
16-digit ASCII format, tab delimited
Table 13: Options associated with
s
s
a
a
v
v
e
e
The use of “ascii” is common and satisfactory for most programming needs.
7.3 Other Reading and saving commands
Matlab can also read and save data in the following data formats (Table 14):
File Format Extension
File Content
Read/save
Command
Returns
mat
Saved MATLAB
workspace
l
l
o
o
a
a
d
d/
s
s
a
a
v
v
e
e
Variables in the
file
csv
Comma-separated
numbers
c
c
s
s
v
v
r
r
e
e
a
a
d
d/
c
c
s
s
v
v
w
w
r
r
i
i
t
t
e
e
Double array
dlm Delimited text
d
d
l
l
m
m
r
r
e
e
a
a
d
d/
d
d
l
l
m
m
w
w
r
r
i
i
t
t
e
e
Double array
Text
tab Tab-separated text
d
d
l
l
m
m
r
r
e
e
a
a
d
d/
d
d
l
l
m
m
w
w
r
r
i
i
t
t
e
e
Double array
cdf
Data in Common
Data Format
c
c
d
d
f
f
r
r
e
e
a
a
d
d
Cell array of CDF
records
fits
Flexible Image
Transport System
data
f
f
i
i
t
t
s
s
r
r
e
e
a
a
d
d
Primary or
extension table
data
Scientific
Data
hdf
Data in
Hierarchical Data
Format
h
h
d
d
f
f
r
r
e
e
a
a
d
d
HDF or HDF-
EOS data set
xls Excel worksheet
x
x
l
l
s
s
r
r
e
e
a
a
d
d
Double or cell
array
Spread-
sheet
Wh1
Lotus 123
worksheet
w
w
k
k
1
1
r
r
e
e
a
a
d
d
Double or cell
array
Table 14: File formats that Matlab can handle.
Use the “
h
h
e
e
l
l
p
p
f
f
i
i
l
l
e
e
f
f
o
o
r
r
m
m
a
a
t
t
s
s
to see the file formats that Matlab can handle, or
use the
h
h
e
e
l
l
p
p
to see the calling syntax of a certain read/save command.
Przeglądanie stron 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 118 119

Komentarze do niniejszej Instrukcji

Brak uwag