88Views1Replies
can i just call my matlab functions in the mex file containing my thread?
hi guys,i am doing Oop in matlab and i have to simulate 2 different networks and visualize the results at thesame time. i have all my functions writtten in matlab m-files.Matlab does not support multithreading .To use mex files will i need to re-right all my matlab functions in the c-pogramming language again or can i just call my matlab functions in the mex file containing my thread?
Comments
11 years ago
are you sure this situation really calls for multithreading?
im sure that:
UPDATE NETWORK1
UPDATE NETWORK2
SHOW RESULTS
LOOP
would work just as well, if you multithread this the displayed data may be pulled halfway through updating the networks which could display inacurate results and, depending on how your code is running could crash the program.