Click here to Skip to main content
15,892,199 members
Articles / Programming Languages / C#

1..2..3 ways of integrating MATLAB with the .NET

Rate me:
Please Sign up or sign in to vote.
4.82/5 (62 votes)
18 Nov 20037 min read 564.4K   26.1K   127  
A library to access MATLAB from .NET and a comparision of three possible methods to implement it.
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>DDEMATLib</name>
    </assembly>
    <members>
        <member name="T:DDEMATLib.DDEMatlab">
            <summary>
            Specialized Support class for MATLAB DDE
            - get/set matrix as string or as double [,] vectors
            - evaluate with/without string result
            	
            </summary>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.#ctor">
            <summary>
            Construct a default DDE connection that uses XLTABLE
            </summary>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.#ctor(System.Boolean,System.Boolean)">
            <summary>
            Construct a MATLAB DDE connection letting choose the
            format and the write mode
            </summary>
            <param name="usePOKE"></param>
            <param name="useXLTABLE"></param>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.Open">
            <summary>
            Open the connection
            </summary>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.GetMatrix(System.String,System.Double[0:,0:]@)">
            <summary>
            Gets a matrix variable 
            </summary>
            <param name="name">name of the matrix</param>
            <param name="data">the matrix, preallocated or not</param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.GetVariable(System.String)">
            <summary>
            Gets a variable in string format
            </summary>
            <param name="name"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.PutVariable(System.String,System.String)">
            <summary>
            Puts a variable value using POKE
            </summary>
            <param name="name"></param>
            <param name="data"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.PutMatrix(System.String,System.Double[0:,0:])">
            <summary>
            Sets a Matrix variable
            </summary>
            <param name="name"></param>
            <param name="data"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.EvaluateNoResult(System.String)">
            <summary>
            Evaluates an expression without getting the result text
            </summary>
            <param name="s"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.EvaluateAsString(System.String)">
            <summary>
            Evaluates an expresion returning a string
            </summary>
            <param name="s"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.MatrixToString(System.Double[0:,0:])">
            <summary>
            Convert a double[,] matrix into a string for MATLAB textual
            transfer
            </summary>
            <param name="m"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.MatrixToString(System.Double[0:,0:],System.Boolean)">
            <summary>
            Same as MatrixToString but uses prefixes, suffixes and separators
            </summary>
            <param name="m"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.MatrixToString(System.Double[],System.Int32)">
            <summary>
            Convert a double[] array considering it as a matrix with
            the specified number of columns
            </summary>
            <param name="m"></param>
            <param name="cols"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.StringToMatrix(System.String)">
            <summary>
            Transforms back a string into a double[,]
            </summary>
            <param name="s"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.StringToMatrix(System.String,System.Double[0:,0:]@)">
            <summary>
            Transforms back a string into a double[,]
            </summary>
            <param name="s"></param>
            <param name="q"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.IsVisible">
            <summary>
            Say if the MATLAB window is visible
            </summary>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.Evaluate(System.String)">
            <summary>
            Evaluate MAT access
            </summary>
            <param name="s"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.SetVisible(System.Boolean)">
            <summary>
            Fixes the MATLAB windows visibility
            </summary>
            <param name="b"></param>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.SetMatrix(System.String,System.Double[0:,0:])">
            <summary>
            Sets a matrix variable
            </summary>
            <param name="name"></param>
            <param name="data"></param>
            <returns></returns>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.BytesToMatrix(System.Byte[],System.Double[0:,0:]@)">
            <summary>
            Support functions that transform a block of bytes in XLTable
            format into a double[,] matrix. It's specialized form MATLAB
            because in R12 it's broken for data blocks greater than 64K
            </summary>
            <param name="tab"></param>
            <param name="mtx"></param>
            <returns></returns>
        </member>
        <member name="F:DDEMATLib.DDEMatlab.BuggedMATLABXLTable">
            <summary>
            Option to fix XLTable to Matrix convertion method
            </summary>
        </member>
        <member name="M:DDEMATLib.DDEMatlab.MATLibrary#MATAccess#Close">
            <summary>
            Specialized Support class for MATLAB DDE
            - get/set matrix as string or as double [,] vectors
            - evaluate with/without string result
            	
            </summary>
        </member>
        <member name="P:DDEMATLib.DDEMatlab.IsOpen">
            <summary>
            Tells if the connection is open
            </summary>
        </member>
    </members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Scuola Superiore S.Anna
Italy Italy
Assistant Professor in Applied Mechanics working in Virtual Reality, Robotics and having fun with Programming

Comments and Discussions