source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/@mutable/getfield.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 467 bytes
Line 
1function 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
11v = s.obj.get(field);
12if isempty(v)
13  error(sprintf('Reference to non-existent field ''%s''.',field));
14end
15v = fromJava(v);
Note: See TracBrowser for help on using the repository browser.