diplom/научка/code/matlab_stm_emulate/mexing.m
2025-05-09 21:26:59 +03:00

20 lines
307 B
Matlab

% Компилирует S-function
clear, clc,
set = mex.getCompilerConfigurations('C', 'Selected');
Ts = 0.00001;
delete("*.mexw64")
delete("*.mexw64.pdb")
delete(".\MCU_Wrapper\Outputs\*.*");
status=system('.\MCU_Wrapper\run_mex.bat debug');
if status==0
beep
else
error('Error!');
end