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
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