Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB Builder NE   

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.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS