Main Content

Failure to Find MATLAB Classes

If your application generates a diagnostic message indicating that Mathworks.MATLAB.NET.name cannot be found, it could be that you need to reference the MWArray.dll assembly in your Visual Studio® project.

The MWArray.dll assembly is located at matlabroot\toolbox\dotnetbuilder\bin\arch\v4.0.

  • matlabroot is your root MATLAB® or MATLAB Runtime folder.

  • arch is the architecture of your computer, such as win64 for a 64-bit Windows® computer.