Main Content

Call school Library Functions

View Help

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 clib package.

Note

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"

Share Interface

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 school folder which contains the interface file schoolInterface.dll.

  • Identify the package name (calling syntax) as clib.school.