Skip to content

Commit 92042f4

Browse files
committed
add allToolboxes
1 parent 8086f9b commit 92042f4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

+stdlib/allToolboxes.m

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
%% ALLTOOLBOXES tell all the Matlab toolboxes known for this Matlab release
2+
% requires: java
3+
4+
function names = allToolboxes()
5+
6+
tbx = com.mathworks.product.util.ProductIdentifier.values; %#ok<JAPIMATHWORKS>
7+
8+
names = table(Size=[numel(tbx), 2], VariableTypes=["string", "string"], VariableNames=["product", "license"]);
9+
10+
names.product = string(tbx);
11+
12+
for i = 1:numel(tbx)
13+
names.license(i) = tbx(i).getFlexName().string;
14+
end
15+
16+
names = sortrows(names);
17+
18+
end

0 commit comments

Comments
 (0)