On Sun, 14 Jul 2019, Allin Cottrell wrote:
On Sun, 14 Jul 2019, Klára Major wrote:
> C:\Users\MAJOR KLÁRA\AppData\Roaming\gretl\h.mat: No such file or directory
> I just checked now: the command line version [of octave] can not handle
> accented characters in the path.
Maybe we should let the user specify an "input_output_dir" (that would
presumably have a nice plain name!) as an alternative to the default
directory under "Users\<username>\AppData".
No, wait: you can already do that! The functions gretl_loadmat() and
gretl_export() have an optional second argument: set it to zero and
gretl will not force use of your AddData\Roaming subdirectory for
input and output.
<hansl>
matrix m = I(3)
mwrite(m, "c:/nice/path/m.mat")
foreign language=octave
mymat = gretl_loadmat("c:/nice/path/m.mat", 0);
mymat *= 2;
gretl_export(mymat, "c:/nice/path/mymat", 0);
end foreign
gotback = mread("c:/nice/path/mymat")
print gotback
</hansl>
(Note that forward slashes in Windows paths should be perfectly
acceptable and may work better with octave, though I haven't
verified that.)
Allin