[Top][All Lists]

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

Re: declaring a scalar

From: Paul Roberts
Subject: Re: declaring a scalar
Date: Sun, 8 Apr 2007 16:36:58 -0700

I believe that in octave, a 1x1 matrix is treated as a scalar, so you
may write your code assuming that if you say x=2, then the variable x
will behave like a scalar variable with value 2.


On 4/8/07, Vivek Rao <address@hidden> wrote:
x = 2

creates a 1-by-1 matrix. How can I create a scalar
variable with value 2? Thanks.

Vivek Rao

Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
Help-octave mailing list

reply via email to

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