MATLAB FINANCIAL DERIVATIVES TOOLBOX Instrukcja Użytkownika Strona 97

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 119
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 96
96
Figure 16: Excel®’s Save As window
The data will be saved in a file with the name: “random_number_data.txt
that can be loaded in Matlab. If by mistake, you save the file and there is an
entry at cell (A8), then when you attempt to
l
l
o
o
a
a
d
d it you will get an error.
7.2 Saving Text ASCII Files: The
s
s
a
a
v
v
e
e
command
On the very opposite, when you need to save some data in a text file to be
able to access it later either by viewing it with Microsoft® Excel® or by re-
loading to Matlab, the user can use the
s
s
a
a
v
v
e
e command. The general calling
syntax of the
s
s
a
a
v
v
e
e
is of the following form:
s
s
a
a
v
v
e
e
filename.ext variable_name options”
If a path is not provided with filename, this command saves the elements of
the variable_name in a file with the complete name filename.ext (where ext
stands for the extension of the filename and for consistency try to always use
.txt) in the current directory. If the scalar/vector/matrix (you cannot save cell
arrays or structures with this command unless first you extract their data in
a matrix or a vector variable) that is located in the workspace under the
Przeglądanie stron 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 118 119

Komentarze do niniejszej Instrukcji

Brak uwag