Skip to content

Commit 1ab1387

Browse files
committed
document Mex required/optional
1 parent 20a74a0 commit 1ab1387

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

+stdlib/create_symlink.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
% see example/Filesystem.java for this working in plain Java.
3232
% see example/javaCreateSymbolicLink.m for a non-working attempt in Matlab.
3333

34+
disp("use 'buildtool mex' or 'legacy_mex_build()' for faster symlink creation")
35+
3436
if ispc
3537
cmd = "pwsh -c " + '"' + "New-Item -ItemType SymbolicLink -Path " + link + ...
3638
" -Target " + target + '"';

+stdlib/is_char_device.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%% IS_CHAR_DEVICE is path a character device
1+
%% IS_CHAR_DEVICE is path a character device (Matlab requires MEX)
22
% e.g. NUL, /dev/null
33
% false if file does not exist
44

+stdlib/is_rosetta.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
%% IS_ROSETTA is running on Apple Silicon using Rosetta
2-
% this would be true if Matlab is build for Intel x86_64
1+
%% IS_ROSETTA on Apple Silicon via Rosetta (Matlab optional MEX)
2+
% true if Matlab on Apple Silicon CPU is built for Intel x86_64
33

44
function r = is_rosetta()
55
r = false;

+stdlib/set_permissions.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
%% SET_PERMISSIONS set path permissions (Matlab requires MEX)
2+
%
3+
%%% Inputs
4+
% * path (1,1) string
5+
% * readable (1,1) int (-1 remove read permission, 0 no change, 1 add read permission)
6+
% * writable (1,1) int (-1 remove write permission, 0 no change, 1 add write permission)
7+
% * executable (1,1) int (-1 remove execute permission, 0 no change, 1 add execute permission)
8+
%%% Outputs
9+
% * ok (1,1) logical
10+
%
11+
% This function is written in C++ using STL <filesystem> and is only available in Matlab.

+stdlib/windows_shortname.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
%% WINDOWS_SHORTNAME Retrieves the Windows short name (8.3 character) form
1+
%% WINDOWS_SHORTNAME Retrieves the Windows short name (Matlab optional MEX)
2+
% (8.3 character) filename
23
%
34
% Example of using a COM server (Scripting.FileSystemObject) in Windows
45
%

0 commit comments

Comments
 (0)