On Martes, 26 de Mayo de 2009 22:13:23 Sebastiano Putoto escribió:
Dear Sven,
dif is an empty matrix, what im trying to do with this command sheet is to
fill it with values. it should work, as far as i know. how else would you
do it?
...
Probably you should define it completely before being refilled, for example
filling it with zeros:
matrix dif=zeros(rows,cols)
Apart from that, I also doubt whether gretl can do an operation with a
complete row. I think probably you must put the command inside another loop
for the columns:
loop j=1..cols
matrix dif[i,j] = ... #or may be: genr diff[i,j]=...
end loop
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.et.bs.ehu.es