On Thu, 28 Jan 2010, Ignacio Diaz-Emparanza wrote:
I was trying to respond to the question "How to read a matrix
from a
text file" in the gretl wiki. I remembered the command "mread" so,
having the matrix {1, 2; 3, 4} saved in file Bm.mat in my gretl working
directory I wrote the script:
<script>
nulldata 50
B = mread("Bm.mat")
B
</script>
I was surprised obtaining the output "B: matrix is NULL" (BTW this
string should be marked for translation). Then I looked at this more
carefully and finally I deduced that "mread" does not work until
"mwrite" has been used !!
I can't reproduce this behaviour here. Are you using CVS?
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti