Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/BNT/@assocarray/assocarray.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function A = assocarray(keys, vals) |
matthiasm@8 | 2 % ASSOCARRAY Make an associative array |
matthiasm@8 | 3 % function A = assocarray(keys, vals) |
matthiasm@8 | 4 % |
matthiasm@8 | 5 % keys{i} is the i'th string, vals{i} is the i'th value. |
matthiasm@8 | 6 % After construction, A('foo') will return the value associated with foo. |
matthiasm@8 | 7 |
matthiasm@8 | 8 A.keys = keys; |
matthiasm@8 | 9 A.vals = vals; |
matthiasm@8 | 10 A = class(A, 'assocarray'); |