using MLApp in a class a use in unity

I wrote a C# class and i want to use it as part of my unity project.
Some of the methods in the class use feval() to call to a matlab function.
here is an example from the code:

 //cretaes  the directory where the output files from the matlab function would be saved
            Directory.CreateDirectory(experimentRun.getexperimentDirectoryPath());

            // Create the MATLAB instance
            MLApp.MLApp matlab = new MLApp.MLApp();

            // Change to the directory where the function is located
            matlab.Execute(@"cd" + MATLAB);

            // Define the output
            object result = null;

            // Call the MATLAB function "matlab_func"
            matlab.Feval("matlab_func", 0, out result, experimentRun.getDataAcquisitionRate(), experimentRun.getexperimentDirectoryPath());

when importing my class to my “Plugins” folder in my unity project i get the following error:
“the type or namespace MLApp couldnot be found”
the problem is that i have no idea how to import the Matlab application refrence to my unity project

It looks like you are using the code here, this is for a C# console application with the COM component installed, it would not be expected to work in Unity https://www.mathworks.com/help/matlab/matlab_external/call-matlab-function-from-c-client.html. What are you trying to do?

As part of an experiment I am trying to develop a game in unity, the data acquisition in the experiment is done using a matlab script (written by some one else) I want the matlab code to run when the player pushes the start button

Understood, this code would not be expected to work in Unity.