The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Error in SVMclassify
Replies: 1   Last Post: Oct 13, 2012 5:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Muhammad Imran

Posts: 63
Registered: 5/31/12
Error in SVMclassify
Posted: Oct 13, 2012 5:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all
i have the fallowing code

for j=1:10
PosNegF=vertcat(Pos ,Neg );

clear Fset;
clear Fset1;

for l=1:999

Fset(l,:)= [l,svmclassify(svmstruct, DB1(l,:))];


it is giving error when j=8, run ok till j=7
fallowing is the error thronging by this code

??? Attempted to access svmStruct.ScaleData.scaleFactor(10); index out of bounds
because numel(svmStruct.ScaleData.scaleFactor)=9.

Error in ==> svmclassify at 109
sample(:,c) = svmStruct.ScaleData.scaleFactor(c) * ...

Error in ==> RF_SVM at 144
Fset(l,:)= [l,svmclassify(svmstruct, DB1(l,:))];

Please help me

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.