Code covered by the BSD License  

Highlights from
Integrating MATLAB with C#

image thumbnail
from Integrating MATLAB with C# by David Forstot
Three methods of integrating MATLAB code into a C# project.

math_on_numbers(a, b)
function [c, d] = math_on_numbers(a, b)

% This code is provided for example purposes only

% Copyright 2006-2010 The MathWorks, Inc.

c(1) = a(1) + b(1);
c(2) = a(1) - b(1);
d(1) = a(2) * b(2);
d(2) = a(2) / b(2);

Contact us at files@mathworks.com