Last change
on this file since 177 was
37,
checked in by (none), 15 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
467 bytes
|
Line | |
---|
1 | function v = getfield(s,field)
|
---|
2 | %GETFIELD Get mutable structure field contents.
|
---|
3 | % f = getfield(s,'field') returns the contents of the specified field.
|
---|
4 | % This is equivalent to the syntax f = s.field.
|
---|
5 | %
|
---|
6 | % See also SETFIELD, RMFIELD, ISFIELD, FIELDNAMES.
|
---|
7 |
|
---|
8 | % Written by Tom Minka
|
---|
9 | % (c) Microsoft Corporation. All rights reserved.
|
---|
10 |
|
---|
11 | v = s.obj.get(field);
|
---|
12 | if isempty(v)
|
---|
13 | error(sprintf('Reference to non-existent field ''%s''.',field));
|
---|
14 | end
|
---|
15 | v = fromJava(v);
|
---|
Note: See
TracBrowser
for help on using the repository browser.