On Mon, 2 Feb 2009, Franck Nadaud wrote:
I experience some problem with the matrix functions. Returning to an
older
script with new data it does not work properly. Well, here is some code:
###### lissage spatial des PPV
list datalist = 13 14 15 16 17 18 19 20 21 22 23 24
list ppv4 = 25 26 27 28
list ppv8 = 29 30 31 32 33 34 35 36
matrix V4 = {ppv4}
matrix V8 = {ppv8}
Everything is ok with the list commands, but when i want to
create the matrices V4 and V8, from lists ppv4 and ppv8 gretl
does not do it and says:
Types de données non conformes pour l'opération
Could you send a copy of your complete script, please? I tried a
simple example of this with current gretl:
<script>
open data4-10
list ppv4 = 1 2 3 4 5
list ppv8 = 4 5 6 7 8 9
matrix V4 = {ppv4}
matrix V8 = {ppv8}
</script>
and it works OK, so I suppose there must be something more
complicated going on. (You would get the "types" error message if
the identifier "V4" had been used for something other than a
matrix at an earlier point in the script.)
Allin Cottrell