octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave "Most Wanted" feature


From: John Swensen
Subject: Re: octave "Most Wanted" feature
Date: Wed, 29 Nov 2006 11:35:37 -0500
User-agent: Thunderbird 2.0a1 (X11/20060807)

robert bristow-johnson wrote:
From: "John W. Eaton" <address@hidden>
Subject: Re: octave "Most Wanted" feature
Date: Wed, 29 Nov 2006 11:05:24 -0500


On 29-Nov-2006, robert bristow-johnson wrote:

| > From: "John W. Eaton" <address@hidden>
| > Subject: Re: octave "Most Wanted" feature
| > Date: Wed, 29 Nov 2006 10:01:22 -0500
| >
| >
| > On 29-Nov-2006, robert bristow-johnson wrote:
| >
| > | (since Octave and MATLAB sorta switch the roles of columns and rows).
| >
| > What do you mean by "sorta switch the roles of columns and rows"?
|
| i mean in Octave:
|
| octave:1> A = [1 2 3;4 5 6]
| A =
|
|    1   2   3
|    4   5   6
|
| octave:2> A(4)
| ans =  5
|
| but in MATLAB, A(4) would be 4.

No, it would also be 5 in Matlab.

???

i don't have MATLAB here on this linux machine that i'm using at work (when i 
get home tonight, i can check this) but i thought (simply by recollection) that 
MATLAB unloaded contents by rows, not columns (maybe i've confused this with 
C?).  to be wrong about this really will be a difficult neuron to rewire, but i 
certainly admit i could be.

but i don't think this changes any of the points about this Index Origin 
extension.

--

r b-j                  address@hidden

"Imagination is more important than knowledge."



MATLAB OUTPUT
----------------------------
                           < M A T L A B >
                 Copyright 1984-2005 The MathWorks, Inc.
                  Version 7.1.0.183 (R14) Service Pack 3
                             August 02, 2005


 To get started, select MATLAB Help or Demos from the Help menu.

>> A = [1 2 3;4 5 6]

A =

    1     2     3
    4     5     6

>> A(4)

ans =

    5

>>


OCTAVE OUTPUT
---------------------------
GNU Octave, version 2.9.9+ (sparc-sun-solaris2.10).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

octave:1> A = [1 2 3;4 5 6]
A =

  1   2   3
  4   5   6

octave:2> A(4)
ans =  5
octave:3>



reply via email to

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