Cookbook: Difference between revisions

No change in size ,  23 August 2012
m
→‎Problem: fix code, must be cell array
m (→‎Problem: fix code, must be cell array)
Line 7: Line 7:


   samples = struct ("patient", {"Bob", "Kevin", "Bob" , "Andrew"},
   samples = struct ("patient", {"Bob", "Kevin", "Bob" , "Andrew"},
                     "age",    [ 45  ,  52    ,  45  ,  23    ],
                     "age",    { 45  ,  52    ,  45  ,  23    },
                     "protein", {"H2B", "CDK2" , "CDK2", "Tip60" },
                     "protein", {"H2B", "CDK2" , "CDK2", "Tip60" },
                     "tube"  , [ 3  ,  5    ,  2    ,  18    ]
                     "tube"  , { 3  ,  5    ,  2    ,  18    }
                     );
                     );