Hola Fernando, responderé a esta pregunta en inglés.
You can refer to the following MATLAB Answer related to running ANSYS from MATLAB for optimization purposes - https://www.mathworks.com/matlabcentral/answers/160210-how-can-i-run-ansys-from-matlab?s_tid=srchtitle
Also, you can refer to the following links for books and videos on MATLAB-ANSYS interaction :