[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave "Most Wanted" feature
From: |
David Bateman |
Subject: |
Re: octave "Most Wanted" feature |
Date: |
Wed, 29 Nov 2006 17:26:12 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
robert bristow-johnson wrote:
>> ----- Original Message -----
>> From: "John W. Eaton" <address@hidden>
>> To: "robert bristow-johnson" <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:
>>
>> | i dunno why you're adding stride to this. Arrays already have an implicit
>> | stride which is the length of coulmns for Octave and the length of rows for
>> | MATLAB (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. also
>
> octave:3> size(A)
> ans =
>
> 2 3
>
> in Octave the inherent stride of this 2-dim array is 2, the first element of
> the size() vector, in MATLAB it is 3, the second element.
>
> that's all i meant.
>
> --
>
> r b-j address@hidden
>
> "Imagination is more important than knowledge."
>
>
>
>
Have you checked?
>> version
ans =
7.3.0.298 (R2006b)
>> A = [1 2 3;4 5 6]
A =
1 2 3
4 5 6
>> A(4)
ans =
5
D.
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
- Re: octave "Most Wanted" feature, (continued)
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/28
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/29
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/29
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/29
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/29
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/29
- Re: octave "Most Wanted" feature, robert bristow-johnson, 2006/11/30