Creating an Instance of a Class
As with any .NET class, you need to create an instance of the
classes you create with the MATLAB Builder NE product before you
can use them in your program.
Suppose you build a component with a class named MyComponentClass.
Here is an example of creating an instance of that class:
MyComponentClass classInstance = new MyComponentClass();
See How the MCR Is Shared Among Classes for information about
what happens when you instantiate classes.
 | Specifying Component Assembly and Namespace | | Using Dispose to Explicitly Free Resources |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit