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
Tom Lane
2016년 3월 11일
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
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!