help-octave
[Top][All Lists]
Advanced

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

loading complex data in octave


From: Kamaraju S Kusumanchi
Subject: loading complex data in octave
Date: Thu, 14 Jun 2007 14:04:02 -0400
User-agent: KNode/0.10.4

If I have real data such as

$cat data.txt
1 2
3 4
5 6


I can load it into octave by doing

$octave -q
octave:1> A = load("data.txt")

How can I write the complex data file, so that it can be loaded into octave?

I tried something like
$cat data2.txt
1 (2, 7)
3 (4, 8)
5 (6, 10)


$octave -q
octave:1> B = load("data2.txt")
error: load: failed to read matrix from file `data2.txt'
error: evaluating assignment expression near line 1, column 3

Any idea how to make this work?

thanks
raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/



reply via email to

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