I am writing a C# application and I would like to make calls to different matlab functions simultaneously(from different threads). Each Matlab function is located in its own compiled .net library. It seems that I am only able to call one Matlab function at a time however.
ie, if matlab_func1() gets called from thread1 then matlab_func2() gets called from thread2, matlab_func2() must wait for matlab_func1() to finish executing.
Is there a way to call different matlab functions simultaneously? Thanks.
MWArray[] DoKalmanFilter(double vel_x, double vel_y, double vel_z, double cal_x, double cal_y, double cal_z, bool doCal)
{
...set up parameters
ret = KalmanFilter.kalman_actual(6, velx, vely, velz, cal_x, cal_y, cal_z,
return ret;
}
private void DoImageProcessing()
{
..set up parameters
MWArray[] ret = _imgProcessor.DoImageProcessing(2, rgbMarkerColor, hsvThreshold, angleDiffThreshold);
}