script with 'ver' command returns different products and licenses within matlab and from deployed archive on production server. See detail below
Show older comments
in Matlab run, I got this:
{'Name: MATLAB, Version: 24.1, Release: (R2024a), Date: 19-Nov-2023' }
{'Name: MATLAB Compiler, Version: 24.1, Release: (R2024a), Date: 19-Nov-2023' }
{'Name: MATLAB Compiler SDK, Version: 24.1, Release: (R2024a), Date: 19-Nov-2023'}
running the deployed archive, I got this:
"lhs": [...
"mwdata": [
"Name: MATLAB, Version: 24.1, Release: (R2024a), Date: 19-Nov-2023",
"Name: MATLAB Compiler, Version: 24.1, Release: (R2024a), Date: 19-Nov-2023"
],...
]
======here is the script I used====
function m = getlicenseinfo()
% Copyright 1984-2019 The MathWorks, Inc.
% All Rights Reserved.
toolboxInfo = ver;
% Prepare a cell array to hold the formatted output
m = cell(length(toolboxInfo), 1);
% Loop through the structure and format the output
for i = 1:length(toolboxInfo)
m{i} = sprintf('Name: %s, Version: %s, Release: %s, Date: %s', ...
toolboxInfo(i).Name, ...
toolboxInfo(i).Version, ...
toolboxInfo(i).Release, ...
toolboxInfo(i).Date);
end
end
Accepted Answer
More Answers (0)
Categories
Find more on Installation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!