Toolboxes installed and licensed, but not in use

49 ビュー (過去 30 日間)
Dirk
Dirk 2022 年 4 月 7 日
コメント済み: Dirk 2022 年 4 月 7 日
Why are my toolboxes not in use when they are licensed and installed?
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.11.0.1873467 (R2021b) Update 3
MATLAB License Number: redacted
Operating System: macOS Version: 11.6.4 Build: 20G417
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.11 (R2021b)
Image Processing Toolbox Version 11.4 (R2021b)
Mapping Toolbox Version 5.2 (R2021b)
Optimization Toolbox Version 9.2 (R2021b)
Statistics and Machine Learning Toolbox Version 12.2 (R2021b)
>> license('inuse')
matlab
>> license('test','MAP_Toolbox')
ans =
1
  2 件のコメント
Les Beckham
Les Beckham 2022 年 4 月 7 日
編集済み: Les Beckham 2022 年 4 月 7 日
It probably depends on your license type, but I'm pretty sure that if you haven't used any tools from a particular toolbox in your current Matlab session, it won't check out a license for that toolbox. So, you would see the behavior you describe.
You could try
license('checkout','MAP_Toolbox')
license('test','MAP_Toolbox')
Dirk
Dirk 2022 年 4 月 7 日
That worked. Also calling a function within the toolbox first prior to querying 'inuse' worked.

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2022 年 4 月 7 日
I'm not entirely certain what your concern is. Are you wondering why license inuse doesn't list all of the products that appear in the output of ver? If so the explanation is simple: you haven't done anything in your MATLAB session that required functionality from that toolbox yet.
You've obviously called functions from MATLAB (if nothing else the license function is part of MATLAB) but you haven't called functions from any other product (or if you have, you did so long enough ago that the toolbox license was returned to the license server.) In your example, did you call any Mapping Toolbox functions before running the first of the license inuse calls?
  1 件のコメント
Dirk
Dirk 2022 年 4 月 7 日
You are correct. I was testing for 'inuse' prior to (successfully and without typos) calling a function within the toolbox.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by