school Library Functions
At the MATLAB® command prompt, type these commands to open documentation for the library in your help browser.
doc clib.school.Person %load the package doc clib.school %display package members
Call Library Functions
To call functionality in the
school library, use the MATLAB
Once you use a library class or function, you cannot modify the library definition unless you restart MATLAB and rebuild the library.
Create a teacher and display the name.
t1 = clib.school.Teacher('Ms. Jones',24); getName(t1)
Teacher name: Ms. Jones ans = "Ms. Jones"
To give the interface to another MATLAB user, create a toolbox installation (.mltbx) file. Using the instructions in Distribute MATLAB Interface to C++ Library:
Set the toolbox folder to your
schoolfolder which contains the interface file
Identify the package name (calling syntax) as