help-octave
[Top][All Lists]
Advanced

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

Re: How do I set values in a ComplexColumn vector in a DLL.


From: Andy Adler
Subject: Re: How do I set values in a ComplexColumn vector in a DLL.
Date: Thu, 18 Jul 2002 21:55:57 -0400 (EDT)

On Thu, 18 Jul 2002, Bergman, Paul - AES wrote:
> ComplexColumnVector ccv;
> ccv(1,1) = Complex(1.0,1.0);
> 
> But got an error that said something like "can not use '0' as a function"
> when I tried to compile.

A vector takes one index.
Try:

ccv(1) = Complex(1,1);

or 

ComplexMatrix m;
m(1,1) = Complex(1,1);

_______________________________________
Andy Adler,                address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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