from
Image Processing Subset
by Anthony Gabrielson
I have started to write a subset of the Image Processing toolbox.
|
| buildMex(filename, enblDbg)
|
function buildMex(filename, enblDbg)
% Examples:
% buildMex Defaults to false
% buildMex(true) or buildMex(false)
%
% Takes:
% enblDbg: Enable Debug mode (defaults false)
%
% Notes:
% false has no debugging symbols (DEFAULT)
% true has debugging symbols
%
% Author:
% Anthony Gabrielson
% 08/29/08
if ~exist('filename','var') || isempty(filename),filename='*.cpp'; end
if ~exist('enblDbg','var') || isempty(enblDbg),enblDbg=false; end
flist = dir(filename);
switch enblDbg
case false % 0
for J = 1:length(flist)
mex('-v',flist(J).name)
end
case true % 1
for J = 1:length(flist)
mex('-g','-v',flist(J).name)
end
otherwise
fprintf('Debug Mode Invalid (not true or false)\n');
end
|
|
Contact us at files@mathworks.com