Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
398 bytes
|
Line | |
---|
1 | function items = itemGet(a_f, a_id) |
---|
2 | % IGET - get an items |
---|
3 | % iget(f, id) return the items having id for identifier. |
---|
4 | % iget(..., 'REMOVE_CELL') removes cell when only a 1 by 1 cell is |
---|
5 | % returned. |
---|
6 | |
---|
7 | items = cell(numel(a_id), 1); |
---|
8 | for i = 1:numel(a_id) |
---|
9 | par = itemGet(a_f.BasicDB, a_id(i)); |
---|
10 | par = par{1}; |
---|
11 | [dummy, hf] = itemParent(a_f, a_id(i)); |
---|
12 | hf = hf{1}; |
---|
13 | items{i} = @(x)hf(x, par); |
---|
14 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.