Test Your .NET Development Environment - MATLAB & Simulink (original) (raw)

MATLAB® engine API for .NET ships with example C# code that you can use to test your environment and to become familiar with the use of the engine API. The source code is located in the folder defined byfullfile(_`matlabroot`_,"extern","examples","engines","dotnet"), where _`matlabroot`_ is the path returned by the MATLABmatlabroot command.

The folder contains:

Copy the files to a writable folder on your path using the MATLABcopyfile function:

copyfile(fullfile(matlabroot,"extern","examples","engines","dotnet","dotnet_engine_examples.sln"),".","f") copyfile(fullfile(matlabroot,"extern","examples","engines","dotnet","console*.*"),".\console","f")

If you are on a Windows platform:

copyfile(fullfile(matlabroot,"extern","examples","engines","dotnet","gui*.*"),".\gui","f")

Follow these instructions in the README file to build and run the examples:

See Also

Topics