help-octave
[Top][All Lists]
Advanced

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

Re: struct weirdness


From: Carnë Draug
Subject: Re: struct weirdness
Date: Thu, 23 Aug 2012 22:06:26 +0100

On 23 August 2012 21:58, Jordi Gutiérrez Hermoso <address@hidden> wrote:
> On 23 August 2012 10:46, Przemek Klosowski <address@hidden> wrote:
>> I was looking at the example from http://wiki.octave.org/Cookbook:
>>
>> samples = struct ("patient", {"Bob", "Kevin", "Bob" , "Andrew"},
>>                    "age",     [ 45  ,  52    ,  45   ,  23     ],
>>                    "protein", {"H2B", "CDK2" , "CDK2", "Tip60" },
>>                    "tube"   , [ 3   ,  5     ,  2    ,  18     ]
>>                    );
>
> This the square brackets should be curly. Then it's a struct array,
> and if you do samples(1) and samples(2), you get the data you expect.
> Can you update the wiki?

I had it wrong. I have just fixed it. There was also some other
mistakes from the first example I used and changed because could be a
bit morbid.

Carnë


reply via email to

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