How can I tell if the parallel computing toolbox installed?

62 Ansichten (letzte 30 Tage)
J Wigton
J Wigton am 1 Jul. 2015
Bearbeitet: Chandler Williams am 27 Apr. 2017
I purchased the Linux home version plus the parallel computing toolbox. Home version installed, how can I tell if the parallel computing toolbox installed?

Antworten (2)

Walter Roberson
Walter Roberson am 27 Apr. 2017
There are two things you can check:
ver('distcomp') %this tells you whether it is _installed_
license('test','Distrib_Computing_Toolbox') %this tells you whether it is _licensed_
It is a pain that you have to know the exact magic names and that the names are different for the two facilities.
  1 Kommentar
Chandler Williams
Chandler Williams am 27 Apr. 2017
Bearbeitet: Chandler Williams am 27 Apr. 2017
Awesome. Thanks. The code to check for my particular program ended up being:
try
ver('distcomp')
catch
fprintf('Not installed')
end

Melden Sie sich an, um zu kommentieren.


Mischa Kim
Mischa Kim am 1 Jul. 2015
J, use the ver command.
You should see something like
Parallel Computing Toolbox Version 6.6 (R2015a)
  1 Kommentar
Chandler Williams
Chandler Williams am 27 Apr. 2017
Bearbeitet: Chandler Williams am 27 Apr. 2017
Thanks. For runtime, I want to check only for the Parallel Computing Toolbox. I tried ver product, ver(product), ver('product'), and tried finding a function specific to the Parallel Computing Toolbox, but failed and so using
if true
% code
n = 'dss';
pat = '(?<=^.+[\\/]toolbox[\\/])[^\\/]+';
regexp(which(n), pat, 'match', 'once')
end
failed as well. Do you happen to know what format product name should be in for the Parallel Computing Toolbox? Thanks.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by