When a Mex-function produces a segmentation-fault, a MATLAB System Error window pops-up and choosing Attempt to Continue
leads to a lot of useless debugging information which is purred into the command window.
Is it possible to catch these mex-exceptions in Matlab or at least to be able to process them later on?
Unfortunately, following conventional try/catch won't work in this cases:
try
myMex(input)
catch
error('Mex failed')
end
Please note that I do not want to catch the error inside the mex.