[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: struct weirdness
From: |
Sergei Steshenko |
Subject: |
Re: struct weirdness |
Date: |
Fri, 24 Aug 2012 02:23:23 -0700 (PDT) |
--- On Thu, 8/23/12, John W. Eaton <address@hidden> wrote:
> From: John W. Eaton <address@hidden>
> Subject: Re: struct weirdness
> To: "Sergei Steshenko" <address@hidden>
> Cc: "Przemek Klosowski" <address@hidden>, "Jordi Gutiérrez Hermoso"
> <address@hidden>, "address@hidden" <address@hidden>
> Date: Thursday, August 23, 2012, 3:22 PM
> On 23-Aug-2012, Sergei Steshenko
> wrote:
>
> | "This the square brackets should be curly" - if it's a
> must, and square brackets are accepted, then we have a bug -
> because no error message is issued.
> |
> | If square brackets are allowed, then the struct element
> should be treated as vector in this case, which it is not -
> see my earlier Email in the thread. So, I think, we still
> have a bug - because square brackets are not treated as they
> normally do.
>
> It's not a bug.
>
> The behavior is compatible with Matlab.
>
> The [...] argument is a single Matrix object, which is a
> single
> "scalar" element of a cell array. So somewhat
> consistent with
> handling of scalar objects in other contexts, it is
> broadcast to all
> dimensions of the struct array.
>
> jwe
>
Which part of "help struct" explains that I can't apply 'size' operator to
something that has been specified with '[...]' ?
Thanks,
Sergei.
- struct weirdness, Przemek Klosowski, 2012/08/23
- Re: struct weirdness, Sergei Steshenko, 2012/08/23
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/23
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/23
- Re: struct weirdness, John W. Eaton, 2012/08/23
- Re: struct weirdness,
Sergei Steshenko <=
- Re: struct weirdness, Ben Abbott, 2012/08/24
- Re: struct weirdness, Sergei Steshenko, 2012/08/24
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/24
- Re: struct weirdness, Sergei Steshenko, 2012/08/25
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/25
- Re: struct weirdness, Sergei Steshenko, 2012/08/25
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/26
- Re: struct weirdness, Robert T. Short, 2012/08/26
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/26
- Re: struct weirdness, Jordi Gutiérrez Hermoso, 2012/08/26