help-octave
[Top][All Lists]
Advanced

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

Re: Newbie: empty matix returned when expecting initialization.


From: Roberto Lopez
Subject: Re: Newbie: empty matix returned when expecting initialization.
Date: Wed, 05 Dec 2001 09:11:06 +0000

Balakumar Swaminathan wrote:
> 
> Hi,
> 
> When I have the following listing in a file and invoke it, the "zm2"
> matrix remains an empty matrix; i cant figure out why. Any help is
> appreciated.
> 
> Thanks.
> 
> 
> l=0.25;
> a=0.005;
> N=50;
> x1=-.906179845938664;
> x2=-.538469310105683;
> x3=0;
> x4=-x1;
> x5=-x2;
> w1=.236926885056189;
> w2=.478628670499366;
> w3=.568888888888889;
> w4=w1;
> w5=w2;
> ka=2*pi*a;
> kl=2*pi*l;
> klt=2*pi*l;
> zn=-kl/2:kl/N:kl/2;
> zm1=-(kl/2)+kl/(2*N):kl/N:-kl/(2*N);
> zm2=kl/(2*N):kl/N:((kl/2)-(kl/2*N));
> zm=[zm1,0,zm2];


$ zm2
zm2 =
   Empty matrix: 1-by-0
$ kl/(2*N)
ans =
    0.0157
$ kl/N
ans =
    0.0314
$ ((kl/2)-(kl/2*N))
ans =
  -38.4845
$

---- Regresive count with positive increment
-- 
Roberto Lopez Lopez                                   I love this game!
Optical Engineer, Technology Division              Tel#: +34 922 605200
Instituto de Astrofisica de Canarias               Fax#: +34 922 605210
38200 - La Laguna                                         address@hidden 
Tenerife, SPAIN                                       http://www.iac.es



-------------------------------------------------------------
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]