On 04/03/2026 01:43, Alecos Papadopoulos wrote:
Using the eigen function I obtain the matrix with eigenvalues
XXeig (5 x 1)
4.4676e+004 + 0.0000e+000i
5.9654e+003 + 0.0000e+000i
1.2180e-003 + 0.0000e+000i
1.0542e+002 + 0.0000e+000i
8.0995e+002 + 0.0000e+000i
If I select its icon, select "copy as csv..." and choose any of the
"comma / space / tab" options for separators, I get, when pasting into
an excel file,
44676.2059363678
0
5965.42208618647
0
0.00121802209740075
I understand that essentially it copies the first three eigenvalues
but understands as different rows the numbers to the left of the
stand-alone "+" sign.
So, since this is a 5 X 1 matrix, it exhausts the row index at the
element 1.2180e-003.
Could that be fixed?
I can reproduce the problem, it shouldn't be hard to fix. In the
meantime, you can circumvent the problem by defining
<hansl>
foo = Re(XXeig) ~ Im(XXeig)
</hansl>
That said, I see your eigenvalues are all real and positive, which means
that the matrix they come from is positive definite. If it's also
symmetric, you'll want to use the much more efficient specialised
function eigensym() function instead of eigen().
--
-------------------------------------------------------
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
-------------------------------------------------------