Skip to content

Commit 320961f

Browse files
committed
rename platform_tell() to doctor()
1 parent 645590b commit 320961f

4 files changed

Lines changed: 22 additions & 17 deletions

File tree

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
%% PLATFORM_TELL - Display information about the platform and environment
1+
%% DOCTOR - Display information about the platform and environment
22
% works back to very old Matlab (R2011b at least)
3+
% inspired by "brew doctor" and "conda info"
34

4-
function json = platform_tell()
5-
6-
5+
function json = doctor()
76

87
raw = struct('matlab_arch', computer('arch'));
98

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
name: Matlab tell External Language Interface versions
6060
uses: matlab-actions/run-command@v3
6161
with:
62-
command: stdlib.platform_tell()
62+
command: stdlib.doctor()
6363

6464
- &code-issues
6565
name: Check codeIssues
@@ -137,7 +137,7 @@ jobs:
137137
# - name: Matlab tell External Language Interface versions
138138
# uses: matlab-actions/run-command@v3
139139
# with:
140-
# command: stdlib.platform_tell()
140+
# command: stdlib.doctor()
141141
# startup-options: -nojvm
142142

143143
# - name: Main Tests NoJVM

Readme.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,25 @@ The
3939
"backend" column tells which functions have selectable backend implementations.
4040
By default, when the "backend" is not specified to a function having selectable backend, the algorithm searches for the first available backend and uses that.
4141

42-
[.NET](https://www.mathworks.com/help/matlab/call-net-from-matlab.html)
43-
support in MATLAB includes:
44-
* Windows: all supported Matlab releases
45-
* Linux or macOS: R2024b and newer
46-
47-
For macOS, `brew install dotnet` and then in Matlab `edit(fullfile(userpath, 'startup.m'))` and add the line `setenv('DOTNET_ROOT', '/opt/homebrew/opt/dotnet/libexec')` where the path is determined from `brew --prefix dotnet`.
48-
49-
Other language backends include:
42+
Matlab external backends include:
5043

5144
* [Java](./Readme_java.md): all supported Matlab releases
5245
* [Perl](https://www.mathworks.com/help/matlab/ref/perl.html): Matlab R2018a and newer. This uses a system() call to Perl.
53-
* [Python](https://www.mathworks.com/help/matlab/call-python-libraries.html): Matlab R2022b and newer. `stdlib.has_python` checks that the Python version set by `pyenv()` is compatible with the Matlab release.
46+
* [Python](https://www.mathworks.com/help/matlab/call-python-libraries.html): Matlab R2022b and newer. `stdlib.has_python` checks that the Python version set by `pyenv()` is compatible with the Matlab release. If there is a problem with Python on a particular Matlab install, `stdlib.has_python(false)` disables the Python backend for that Matlab session.
5447
* 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.
48+
* .NET as described below.
49+
50+
### .NET from Matlab
51+
52+
[.NET](https://www.mathworks.com/help/matlab/call-net-from-matlab.html)
53+
support in MATLAB when a compatible
54+
[.NET SDK is installed](https://www.scivision.dev/matlab-dotnet-linux-macos)
55+
includes:
56+
57+
* Windows: all supported Matlab releases, installed from `winget search Microsoft.DotNet.SDK`
58+
* Linux or macOS: R2024b and newer
59+
60+
For macOS, `brew install dotnet` and then in Matlab `edit(fullfile(userpath, 'startup.m'))` and add the line `setenv('DOTNET_ROOT', '/opt/homebrew/opt/dotnet/libexec')` where the path is determined from `brew --prefix dotnet`.
5561

5662
## Acknowledgments
5763

test/TestPlatform.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function test_perl(tc)
5656

5757
methods (Test, TestTags={'R2017a'})
5858

59-
function test_platform_tell(tc)
60-
r = stdlib.platform_tell();
59+
function test_doctor(tc)
60+
r = stdlib.doctor();
6161
tc.verifyClass(r, 'char')
6262
tc.verifyNotEmpty(r)
6363
end

0 commit comments

Comments
 (0)