Why does gscatter fail in R2016a?

9 visualizaciones (últimos 30 días)
R.P.W. Duin
R.P.W. Duin el 8 de Mzo. de 2016
Comentada: Rakesh Chavan el 16 de Mzo. de 2016
I recently downloaded R2016a. Unlike before I have problems with gscatter. The help contains the example:
load carsmall
gscatter(Weight, MPG, Origin)
It returns an error:
Undefined variable "statslib" or class "statslib.internal.mgrp2idx"
I am using the default path. Do I miss some toolboxes?
Bob Duin
  2 comentarios
Tom Lane
Tom Lane el 11 de Mzo. de 2016
In R2016a I find this:
>> which statslib.internal.mgrp2idx
...\matlab\toolbox\shared\statslib\+statslib\+internal\mgrp2idx.m % static method or package function
and this:
>> ls(fullfile(matlabroot,'toolbox','shared','statslib','+statslib','+internal'))
. getParamVal.m isScalarInt.m parseOnOff.m
.. grp2idx.m isString.m plotGroupedHist.m
colorStringToRGB.m hasMissingVal.m mgrp2idx.m removenan.m
cycleLineProperties.m isIntegerVals.m parseArgs.m
and this:
>> findstr(path,'statslib')
ans =
11801 11891
Would you check to make sure 'statslib' can be found in your path, the contents of the directory are correct, and the 'which' command finds this file?
Rakesh Chavan
Rakesh Chavan el 16 de Mzo. de 2016
Hi,
Have you installed the Statistics and Machine Learning Toolbox as well in the newer version?
You can check the output of the 'ver' command to check the list of toolbox's you have installed. If you are using a network license you use 'license checkout statistics_toolbox ' to verify if you are able to use the toolbox.
You can also use the 'gscatter' command and then use the 'license inuse' to check if the Statistics toolbox is being used.
Hope this helps
regards
Rakesh

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by