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("(a)dotdir/combj1.mat")                
 combj1 
This was fixed in CVS last month. See
http://lists.wfu.edu/pipermail/gretl-devel/2013-June/004514.html
and following.
The fix is in the current snapshots for Windows and OS X. 
There should be a new release before too long.
Allin Cottrell