help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dlmread complex number - sign inverted


From: inor0627
Subject: dlmread complex number - sign inverted
Date: Mon, 27 Nov 2017 03:21:21 -0700 (MST)

Hello,

I tried to read a text file (complex.txt) containing complex numbers:
0; 3+4i; 22

the commands:
format free;
dlmread('complex.txt',';')'
result in:
ans =
 (0,-0)
 (3,-4)
 (22,-0)

All number are converted to complex numbers, that's okay for me. But why is
the sign of the imaginary part of 3+4i inverted? Is this the expected
result?
The behaviour is the same for 4.2.1-64 on Win10 as well as 3.8.2 on debian
8.

Ingo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]