I am getting a license error

I am getting a license error for this line of code
[cluster_idx, cluster_center] = kmeans(ab,nColors,...
'distance', 'sqEuclidean', ...
'Replicates', 3);
I have purchase the following licenses
MATLAB31 Jul 20201
Computer Vision Toolbox
Image Acquisition Toolbox
Image Processing Toolbox
Parallel Computing Toolbox
What other licenses do I need?

1 Comment

Please be so kind to post the error message.
We are currently at Matlab 9.6. If you have bought Matlab 31 in the July 20201, you are coming from the future. I think, that license problems can be expected in such cases.

Sign in to comment.

Answers (2)

Ron Mani
Ron Mani on 23 Jul 2019
Edited: Jan on 24 Jul 2019
I bought the license couple of weeks ago, version 2019a
Diagnostic Information:
Feature: Statistics_Toolbox
License path:
C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2019a_licenses\license_DESKTOP-5CHOI4V_xxxxxxxxxxx_R2019a.lic;C:\Program
Files\MATLAB\R2019a\licenses\license.dat;C:\Program Files\MATLAB\R2019a\licenses\trial_xxxxxxxxxxx_R2019a.lic
Licensing error: -10,32.
Error in ImageProcess_2x (line 26)
[cluster_idx, cluster_center] = kmeans(ab,nColors,...
Walter Roberson
Walter Roberson on 23 Jul 2019
https://www.mathworks.com/matlabcentral/answers/93260-why-do-i-receive-license-manager-error-10
Notice the trial license in your list, the last one. That trial has expired. You should delete that file.
I suspect that you might then encounter error -5 which would be Feature not licensed. If so make sure you have the latest license for your system installed.

2 Comments

I bought all these licenses few days ago. What license I am missing to get this error?
Thanks
Product Service End Date Count
MATLAB 31 Jul 2020 1
Computer Vision Toolbox 31 Jul 2020 1
Image Acquisition Toolbox 31 Jul 2020 1
Image Processing Toolbox 31 Jul 2020 1
Parallel Computing Toolbox 31 Jul 2020 1
Notice that your license path includes trial_6213819_R2019a.lic which is the license for your expired trial. You need to delete that file.
kmeans needs the Statistics and Machine Learning toolbox

Sign in to comment.

Categories

Products

Release

R2019a

Asked:

on 23 Jul 2019

Edited:

Jan
on 24 Jul 2019

Community Treasure Hunt

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

Start Hunting!