The system is win XP with Gretl 1.9.12. I can also confirm that it is fixed in cvs.

Thanks a lot.

Andreas


From: Riccardo (Jack) Lucchetti <r.lucchetti@univpm.it>
To: Andreas Zervas <anzervas@yahoo.com>; Gretl list <gretl-users@lists.wfu.edu>
Sent: Friday, July 5, 2013 6:24 PM
Subject: Re: [Gretl-users] Bug

On Fri, 5 Jul 2013, Andreas Zervas wrote:

> There seems to be a bug in gretl_export and / or mread functions, at least when one uses Octave.
> Check the following script:
>
>  foreign language=Octave
>  combj = nchoosek(1:6,3)
> gretl_export(combj,"combj1.mat");
> end foreign
> combj1 = mread("@dotdir/combj1.mat")                
> combj1
>
> One can retrieve the original matrix by this operation, but I guess that is not intended:
>
> combj2 = mshape(vec(combj1'),rows(combj1),cols(combj1))
> combj2

I believe this was fixed in CVS a couple of months ago. What os are you running? If you use win or osx, could you try the latest snapshot to see if it works for you?

> Keep the excellent work.

Thanks!

-------------------------------------------------------
  Riccardo (Jack) Lucchetti
  Dipartimento di Scienze Economiche e Sociali (DiSES)

  Università Politecnica delle Marche
  (formerly known as Università di Ancona)

  r.lucchetti@univpm.it
  http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------