文件
geomesh/lib/Comsol_with_Matlab_Start.m
刘明宏 90b2d9ba09 Code library
Signed-off-by: 刘明宏 <liuminghong@mail.sdu.edu.cn>
2023-06-22 06:27:19 +00:00

20 行
487 B
Matlab

% Start the 'COMSOL Multiphysics with MATLAB' interfaces
% Required: '...\comsolmphserver.exe' and '...\Multiphysics\mli' file address
% You can also manually launch the executable COMSOL Multiphysics with MATLAB. exe
path = pwd;
try
mphtags -show
warning('Already connected to a server!');
catch
winopen('D:\Software\COMSOL60\Multiphysics\bin\win64\comsolmphserver.exe');
cd 'D:\Software\COMSOL60\Multiphysics\mli';
mphstart;
end
cd(path);