I am writing a C # application and I would like to make calls for different matlab functions at the same time (from different threads). Each Matlab function is located in its own compiled .net library. It seems that I can only name one Matlab function at a time.
those. if matlab_func1 () is called from thread1, then matlab_func2 () is called from thread2, matlab_func2 () must wait for matlab_func1 () to complete the execution.
Is there a way to call different Matlab functions at the same time? 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); }
source share