Hello, for some years using Matlab and 1 year working on a system that uses Global Optimization Toolbox and Neural Network Toolbox. To speed up the genetic algorithm I used the mex file, but their use was limited by the fact that not all functions are accepted and that the external functions are not compiled. Consequently, the program goes in and out many times by mex files reducing its effectiveness. All this made me think of the possibility to import all the necessary functions within one but to do this manually is impossible for me. I would like to know if there is a method that will automatically import these functions, it would be possible then to analyze the file and adapt it manually.