recomp.m

来自「simulink real-time workshop for dragon12」· M 代码 · 共 21 行

M
21
字号
% Recompile any of the MC s-functions into a Mex-DLL
% This might become necessary when mofifying the call-up parameters of the masking block...
%
% (FW-06-01)

function ReComp(name)

temppath = cd;
pc_path = which('ReComp.m');
pc_path = [pc_path(1:max(find(pc_path == '\'))-4) 'mc'];
cd (pc_path);

% Matlab 6
disp (['Compiling file ', name, ' into a DLL.']);
eval(['mex ' name ' -v'])

cd(temppath);
clear temppath;

disp ('Done !');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?