[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numel(foo{:}) - feature or bug ?
From: |
Sergei Steshenko |
Subject: |
Re: numel(foo{:}) - feature or bug ? |
Date: |
Fri, 5 Aug 2011 05:42:23 -0700 (PDT) |
--- On Fri, 8/5/11, Sergei Steshenko <address@hidden> wrote:
> From: Sergei Steshenko <address@hidden>
> Subject: Re: numel(foo{:}) - feature or bug ?
> To: address@hidden, "Martin.Hepperle" <address@hidden>
> Date: Friday, August 5, 2011, 5:24 AM
>
>
> --- On Fri, 8/5/11, Martin.Hepperle <address@hidden>
> wrote:
>
> > From: Martin.Hepperle <address@hidden>
> > Subject: Re: numel(foo{:}) - feature or bug ?
> > To: address@hidden
> > Date: Friday, August 5, 2011, 5:13 AM
> > Hmmm...this is what I get under
> > Windows ("official" MINGW binary):
> >
> > octave-3.2.4.exe:53> foo
> > foo =
> >
> > {
> > [1,1] = a
> > [1,2] = ab
> > [1,3] = abc
> > [1,4] =
> >
> > 1 2 3
> > 4
> > 5 6 7
> > 8
> >
> > 9 10 11 12
> >
> > }
> >
> > octave-3.2.4.exe:54> numel(foo)
> > ans = 4
> > octave-3.2.4.exe:55> numel(foo{:})
> > error: Invalid call to numel. Correct usage is:
> >
> > -- Built-in Function: numel (A)
> >
> >
> > Additional help for built-in functions and operators
> is
> > available in the on-line version of the manual. Use
> > the command
> > `doc <topic>' to search the manual index.
> >
> > Help and information about Octave is also available on
> the
> > WWW
> > at http://www.octave.org and via the address@hidden
> > mailing list.
> > octave-3.2.4.exe:55>
> >
> > --
> > View this message in context:
> > http://octave.1599824.n4.nabble.com/numel-foo-feature-or-bug-tp3720972p3721042.html
> > Sent from the Octave - General mailing list archive
> at
> > Nabble.com.
> > _______________________________________________
> > Help-octave mailing list
> > address@hidden
> > https://mailman.cae.wisc.edu/listinfo/help-octave
> >
>
> Please note that:
>
> 1) you are using version 3.2.4 while I am using 3.4.2, i.e.
> mine is later;
> 2) I run Linux while you Windows.
>
> Anyway, I think 2) is irrelevant is this case, i.e. I think
> it's a
> regression in 3.4.2 rather than Linux <-> Windows
> issue.
>
> Thanks,
> Sergei.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
octave-3.0.5 behavior:
octave:1> foo{1} = "a"
foo =
{
[1,1] = a
}
octave:2> foo{2} = "ab"
foo =
{
[1,1] = a
[1,2] = ab
}
octave:3> foo{3} = "abc"
foo =
{
[1,1] = a
[1,2] = ab
[1,3] = abc
}
octave:4> foo{4} = [1 2 3 4; 5 6 7 8; 9 10 11 12]
foo =
{
[1,1] = a
[1,2] = ab
[1,3] = abc
[1,4] =
1 2 3 4
5 6 7 8
9 10 11 12
}
octave:5> numel(foo{:})
Invalid call to numel. Correct usage is:
-- Built-in Function: numel (A)
Additional help for built-in functions and operators is
available in the on-line version of the manual. Use the command
`doc <topic>' to search the manual index.
Help and information about Octave is also available on the WWW
at http://www.octave.org and via the address@hidden
mailing list.
octave:5>
.
Regards,
Sergei.
- numel(foo{:}) - feature or bug ?, Sergei Steshenko, 2011/08/05
- Re: numel(foo{:}) - feature or bug ?, Martin.Hepperle, 2011/08/05
- Re: numel(foo{:}) - feature or bug ?, Sergei Steshenko, 2011/08/05
- Re: numel(foo{:}) - feature or bug ?,
Sergei Steshenko <=
- Re: numel(foo{:}) - feature or bug ?, PhilipNienhuis, 2011/08/05
- Re: numel(foo{:}) - feature or bug ?, Sergei Steshenko, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, Ben Abbott, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, John W. Eaton, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, Ben Abbott, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, Jordi Gutiérrez Hermoso, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, Ben Abbott, 2011/08/06
- Re: numel(foo{:}) - feature or bug ?, Marco atzeri, 2011/08/07
- Re: numel(foo{:}) - feature or bug ?, John W. Eaton, 2011/08/07
- Re: numel(foo{:}) - feature or bug ?, Marco atzeri, 2011/08/07