[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FW: Scalars and Matrices:
From: |
John Day |
Subject: |
Re: FW: Scalars and Matrices: |
Date: |
Tue, 12 Oct 1999 17:22:55 -0400 |
At 03:51 PM 10/12/99 -0500, Mike Miller wrote:
>Is there anything more to the problem than this: MATLAB doesn't allow use
>of a 1x1 matrix. That is, MATLAB will redefine a 1x1 matrix as a scalar,
>and the user has no control over that.
>
>
>Mike
>
But MATLAB does have 1x1 matrices! What it doesn't have is
scalars. Any attempt to enter a "scalar" results in a 1x1 matrix.
Here's proof:
» m = 1
m =
1
» size(m)
ans =
1 1
-jday
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------