help-octave
[Top][All Lists]
Advanced

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

Re: equivalent for C-style init: structname varname[] = {...} ?


From: Sergei Steshenko
Subject: Re: equivalent for C-style init: structname varname[] = {...} ?
Date: Sun, 18 Nov 2012 09:42:28 -0800 (PST)




----- Original Message -----
> From: Dimitri Maziuk <address@hidden>
> To: address@hidden
> Cc: 
> Sent: Sunday, November 18, 2012 6:53 PM
> Subject: Re: equivalent for C-style init: structname varname[] = {...} ?
> 
> On 11/17/2012 7:48 PM, Sergei Steshenko wrote:
> 
>>  In Octave structs are associative arrays.
> 
> Is that documented somewhere or is it lie the rest of octave 
> "documentation" -- you're supposed to already know matlab?
> 
> Because it certainly explains why I can't have mixed-type fields in a 
> struct.
> 
> Dima
> 
> _______________________________________________


"have mixed-type fields" - "foo" and "foo bar" are _both_ strings, so it's the 
same type.

I suggest to read http://en.wikipedia.org/wiki/Hash_table first.

"two" and 2 would be different types (string vs (integer) number), but it's not 
what I was talking about.

Regards,
  Sergei.



reply via email to

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