[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ë
- 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, 2012/08/24
- 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