Skip to Main Content Skip to Search
Product Documentation

Using a COM Component in a .NET Application

Overview

The following examples demonstrate the optimal fitting of a nonlinear function to a set of data in both C# and Microsoft Visual Basic implementations.

Note in particular how memory is freed and allocated. Use these examples as models when using COM components in your own .NET applications.

Program Listings

In matlabroot\toolbox\dotnetbuilder\Examples\
VS8\COM\CurveFitExample\
:

C# Example

CurveFitCSharpApp\CurveFitApp.cs

Visual Basic Example

CurveFitVBApp\CurveFitApp.vb

  


Recommended Products

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

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