mex_beamform.m

来自「超声仿真软件」· M 代码 · 共 28 行

M
28
字号
%MEX_BEAMFORM Compile the beamforming library for matlab
% USAGE  : mex_beamform(debug)
% 
% INPUT  : debug - if 1 "DEBUG" is defined. More messages are printed
%                     0  release version. Most of the messages are omitted
% OUTPUT : Nothing
%
function mex_beamform(debug)
if (nargin > 0)
  if (debug > 0)
    debug = '-DDEBUG';
  else
    debug = '';
  end
else
  debug = '';  
end
file_names = ['c/mex_beamform.c c/focus.c c/beamform.c c/geometry.c c/transducer.c c/motion.c'];
host = computer;
if (strcmp(host,'PCWIN'))
   cmd = ['mex ' debug ' -D__MSCVC_' ' -O -output bft ' file_names];
else
   cmd = ['mex ' debug ' -O -output bft ' file_names];
end

disp('Compiling ... ')
eval(cmd)

⌨️ 快捷键说明

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