The problem is with formatting names of columns and rows. Names have
different length so 'printf' sometimes gives badly formatted results
(specially columns are moved). That's why I would like to use
colnames/rownames and print matrix as a matrix with beautiful formating.
Marcin
W dniu 02.12.2012 23:20, Riccardo (Jack) Lucchetti pisze:
On Sun, 2 Dec 2012, Marcin Błażejowski wrote:
> Hi,
> suppose we have trivial code:
> ---
> matrix foo = zeros(2,2)
> print foo
> ---
>
> The obvious result is:
> ---
> foo (2 x 2)
>
> 0 0
> 0 0
> ---
>
> But is it possible to get only the numbers (without foo (2 x 2))?
How about printf, as in
<hansl>
matrix foo = zeros(2,2)
printf "%8g", foo
</hansl>
?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users