Using Matlab Object-Oriented features
The basic functions of the getfem-matlab toolbox do not use any advanced matlab features (except that the handles to getfem objects are stored in a small matlab structure). But the toolbox comes with a set of Matlab objects, which encapsulate the handles and make them look as real matlab objects. The aim is not to provide extra-functionalities, but to have a better integration of the toolbox with matlab.
Here is an example of its use:
>> m=gf_mesh('cartesian',0:.1:1,0:.1:1) m = id: 0 cid: 0 >> m2=gfMesh('cartesian',0:.1:1,0:.1:1) gfMesh object ID=1 [17512 bytes], dim=2, nbpts=121, nbcvs=100 % while m is a simple structure, m2 has been flagged by matlab % as an object of class gfMesh. Since the display method for % these objects have been overloaded, the toolbox displays some % information about the mesh instead of the content of the structure. >> gf_mesh_get(m,'nbpts') ans = 121 % pseudo member access (which calls gf_mesh_get(m2,'nbpts')) >> m2.nbpts ans = 121
Refer to the OO-commands reference * for more details.
