Skip to content

Commit 1f2dac8

Browse files
committed
doc
1 parent 0db11db commit 1f2dac8

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

+stdlib/Backend.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
%% BACKEND auto-selection of function backend per-function
2+
% the user can specify a backend, or else this class automatically
3+
% determines suitable backends for the system.
4+
%
5+
% * 'sys' is usually the slowest, but most compatible.
6+
% * 'python' or 'dotnet' are among the fastest, but not always available
7+
% * 'java' and 'perl' are usually available and medium speed
8+
% * 'native' uses the latest Matlab syntax available
9+
% * 'legacy' is Matlab syntax for older Matlab versions. Sometimes legacy is faster than native, but native is more robust/general.
10+
111
classdef Backend < matlab.mixin.SetGet
212

313
properties (Constant)

+stdlib/perl_exe.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
%% PERL_EXE get the location of the Perl executable used by Matlab
2+
% this is cached for speed
3+
14
function exe = perl_exe()
25

36
persistent perle
@@ -16,4 +19,4 @@
1619
perle = r;
1720
end
1821

19-
end
22+
end

+stdlib/perl_version.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
%% PERL_VERSION get the Perl version used by MATLAB
2+
% cached for speed
23
%
34
%%% Output
45
% * v: 1x3 vector of major, minor, micro version e.g. Perl 5.32.1 = [5, 32, 1]

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Normally the user will not specify the backend as we prioritize faster backends.
4141
* [.NET](https://www.mathworks.com/help/matlab/call-net-from-matlab.html)
4242
* Windows: all supported Matlab releases
4343
* Linux / macOS: R2024b and newer
44-
* [Java](https://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html): all supported Matlab releases. A few Java functions are Linux / macOS only, but have other backends available.
44+
* [Java](https://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html): all supported Matlab releases
45+
* [Perl](https://www.mathworks.com/help/matlab/ref/perl.html): all supported Matlab releases. This uses a system() call to Perl, which is bundled with Matlab on Windows and generally available on Linux and macOS
4546
* [Python](https://www.mathworks.com/help/matlab/call-python-libraries.html): Matlab R2022b and newer
4647
* System shell calls: all supported Matlab releases. As a backup when the platform doesn't have the primary (faster) methods available, the system shell can be called for some functions.
4748

0 commit comments

Comments
 (0)