help-octave
[Top][All Lists]
Advanced

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

Re: struct weirdness


From: John W. Eaton
Subject: Re: struct weirdness
Date: Thu, 23 Aug 2012 18:22:29 -0400

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


reply via email to

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