Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Getting error while using the 'svmtrain' command

Subject: Getting error while using the 'svmtrain' command

From: Sutapa

Date: 25 Jul, 2013 13:29:14

Message: 1 of 3

Hi,

I am trying to classify a set of numeric data into two classes using SVM. There are 8 rows(observations) and 6 columns(features) in the training data. The target vector is a numeric column matrix of size 8x1.

When I give the command

svmStruct = svmtrain(data_train, groups,'Kernel_Function', 'rbf');

I get the following error message:

??? Undefined variable "internal" or class "internal.stats.getargs".

Error in ==> svmtrain at 294
[eid,errmsg,kfun,optimMethod, plotflag, polyOrder, ...
    mlpParams, boxC, rbf_sigma, autoScale, opts,...
    tolkkt, kktvl,kerCL,...
    kfunargs qpOptsInput, smoOptsInput] = ...
    internal.stats.getargs(pnames, dflts, varargin{:});

Could you please let me know what does this error mean, and how to overcome it?

I use MATLAB R2011a 64 bit version with Windows 7.

Thanks in advance.

Regards,
Sutapa

Subject: Getting error while using the 'svmtrain' command

From: Steven_Lord

Date: 25 Jul, 2013 14:55:12

Message: 2 of 3



"Sutapa " <sutapa_bhattacharya@iitgn.ac.in> wrote in message
news:ksr97a$kij$1@newscl01ah.mathworks.com...
> Hi,
>
> I am trying to classify a set of numeric data into two classes using SVM.
> There are 8 rows(observations) and 6 columns(features) in the training
> data. The target vector is a numeric column matrix of size 8x1.
>
> When I give the command
> svmStruct = svmtrain(data_train, groups,'Kernel_Function', 'rbf');
>
> I get the following error message:
>
> ??? Undefined variable "internal" or class "internal.stats.getargs".
>
> Error in ==> svmtrain at 294
> [eid,errmsg,kfun,optimMethod, plotflag, polyOrder, ...
> mlpParams, boxC, rbf_sigma, autoScale, opts,...
> tolkkt, kktvl,kerCL,...
> kfunargs qpOptsInput, smoOptsInput] = ...
> internal.stats.getargs(pnames, dflts, varargin{:});
>
> Could you please let me know what does this error mean, and how to
> overcome it?

Check the VER function. Do you have both Bioinformatics Toolbox and
Statistics Toolbox installed? Bioinformatics Toolbox requires Statistics
Toolbox, and I would expect to see this error if you don't have Statistics
Toolbox installed or don't have it installed correctly.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Getting error while using the 'svmtrain' command

From: Sutapa

Date: 26 Jul, 2013 09:13:07

Message: 3 of 3

Thanks, the issue was with statistics toolbox. Its resolved now.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us