Commit aa610f9f authored by Johannes Pfeifer 's avatar Johannes Pfeifer

Expand documentation of dynasave

Closes Dynare/dynare#1691
parent e2f91abc
......@@ -10425,20 +10425,20 @@ Dynare has comments to plot the results of a simulation and to save the results.
.. command:: dynatype (FILENAME) [VARIABLE_NAME...];
|br| This command prints the listed variables in a text file named
FILENAME. If no VARIABLE_NAME is listed, all endogenous variables
|br| This command prints the listed endogenous or exogenous variables in a text file named
FILENAME, where FILENAME is a quoted string. If no VARIABLE_NAME is listed, all endogenous variables
are printed.
.. command:: dynasave (FILENAME) [VARIABLE_NAME...];
|br| This command saves the listed variables in a binary file
named FILENAME. If no VARIABLE_NAME are listed, all endogenous
|br| This command saves the listed endogenous or exogenous variables in a binary file
named FILENAME, where FILENAME is a quoted string. If no VARIABLE_NAME is listed, all endogenous
variables are saved.
In MATLAB or Octave, variables saved with the ``dynasave command``
In MATLAB or Octave, variables saved with the ``dynasave`` command
can be retrieved by the command::
load -mat FILENAME
load(FILENAME,'-mat')
.. _macro-proc-lang:
......
  • mentioned in commit 8b2b3a48

    Toggle commit list
  • The description of FILENAME is technically incorrect. It need not be quoted, if there is no extension. There is already a description of what is allowed in FILENAME (see the beginning of the-model-file.rst), so I'd rather remove the details added in this commit.

  • @sebastien That is a tricky issue, because the Matlab save-command in line 10441 will require a quoted string.

  • Indeed, thanks for pointing this. But there's nothing tricky: it’s just that the Dynare and MATLAB commands accept different syntaxes. That should normally be reflected in the documentation (i.e. the description of the MATLAB command should be modified in some way, since the FILENAME keyword is already reserved for the syntax accepted by Dynare commands).

  • Ok. Then we should adjust the documentation accordingly.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment