Skip to content

Commit 74450c8

Browse files
committed
add is_mex_fun()
1 parent d61433f commit 74450c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

+stdlib/is_mex_fun.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
%% IS_MEX_FUN detect if a function is loaded as MEX or plain .m
2+
3+
function y = is_mex_fun(name)
4+
y = endsWith(which(name), mexext());
5+
end

0 commit comments

Comments
 (0)