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

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 2016년 3월 16일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2016년 3월 8일

댓글:

2016년 3월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by