help-octave
[Top][All Lists]
Advanced

[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.

Paul

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 
bargains.
http://farechase.yahoo.com/promo-generic-14795097
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

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