help-octave
[Top][All Lists]
Advanced

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

Using functions "real" and "imag" in vector


From: John B. Thoo
Subject: Using functions "real" and "imag" in vector
Date: Fri, 12 Jun 2009 20:17:32 -0700

Hi, everyone.

My question is about using the functions "real" and "imag" in defining a vector. Specifically, why do I get the following error; what does it mean; and what is the correct way?

octave-3.0.5:22> real (1)
ans =  1
octave-3.0.5:23> imag (1)
ans = 0
octave-3.0.5:24> x0 = [real (1), imag (1)]
error: real: too few arguments
error: evaluating assignment expression near line 24, column 4
octave-3.0.5:24>

Thanks.

---John.


reply via email to

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