diff --git a/Project.toml b/Project.toml index 1949a69..b5f698c 100644 --- a/Project.toml +++ b/Project.toml @@ -9,6 +9,6 @@ MATLAB = "10e44e05-a98a-55b3-a45b-ba969058deb6" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" [compat] -julia = "1.5" MATLAB = "0.8" Reexport = "1" +julia = "~1.5, 1.7" diff --git a/examples/exn_thrower.m b/examples/exn_thrower.m new file mode 100644 index 0000000..9212a10 --- /dev/null +++ b/examples/exn_thrower.m @@ -0,0 +1,6 @@ +function exn_thrower() + +error('I take exception to everything.'); + +end + diff --git a/examples/matlab_exception.m b/examples/matlab_exception.m index 1df2a82..23edece 100644 --- a/examples/matlab_exception.m +++ b/examples/matlab_exception.m @@ -2,8 +2,6 @@ % MATLAB (with the Julia backtrace appended) function matlab_exception() -exn_thrower = @() error('I take exception to everything.'); - try jl.call('Mex.call_matlab', int32(0), exn_thrower) catch e diff --git a/examples/performance.m b/examples/performance.m index ca9eaf0..9b51daf 100644 --- a/examples/performance.m +++ b/examples/performance.m @@ -30,7 +30,6 @@ function performance() %% mexjulia raw % For maximum performance. This requires dealing with the MEX pointer arrays -jleval('using MATLAB: MxArray, jscalar, mxarray'); jleval(sprintf('%s\n',... 'function divrem_raw(plhs::Vector{Ptr{Cvoid}}, prhs::Vector{Ptr{Cvoid}})',... 'out = divrem(jscalar(MxArray(prhs[1], false)), jscalar(MxArray(prhs[2], false)))',...