On Fri, 20 Apr 2012, Artur Tarassow wrote:
I want to load two separate matrices into Octave. It seems that I
can
only load in one matrix at once and work with it.
<hansl>
foreign language=Octave
A = gretl_loadmat("A.mat")
B = gretl_loadmat("B.mat")
end foreign
<hansl>
You haven't shown us a full script so we can't tell what if anything
is wrong, and in fact it seems to me this works fine. The following,
at any rate, works:
<hansl>
matrix A = I(3)
matrix B = I(4)
mwrite(A, "(a)dotdir/A.mat")
mwrite(B, "(a)dotdir/B.mat")
foreign language=Octave
A = gretl_loadmat("A.mat")
B = gretl_loadmat("B.mat")
end foreign
</hansl>
(See chapter 36 of the User's Guide on "Gretl and Octave").
Allin Cottrell