Why does gscatter fail in R2016a?

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 Kommentare

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 am 16 Mär. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Gefragt:

am 8 Mär. 2016

Kommentiert:

am 16 Mär. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by