"M@lik Ali" wrote in message <k530eh$t7d$1@newscl01ah.mathworks.com>...
> Hi all i am using the fallowing code for the svm classification
>
> svmstruct=svmtrain(PosNegF,group); for l=1:999
>
> abc= svmclassify(svmstruct, DB1(l,:))
> Fset(l,:) =[ l,abc];
> end
> here DB is the Feature matrix of the 999 images.
> Now when first time i execute this code it work fine, but when next time i train the SVM and then run again this code it give the Subscripted assignment dimension mismatch. error. please help me. Thanks in advance
At every iteration of loop svmclassify return 1 or 0 only.
then why it giving the dimension mismatch error. even same for the first time.
> Hi all i am using the fallowing code for the svm classification
>
> svmstruct=svmtrain(PosNegF,group); for l=1:999
>
> abc= svmclassify(svmstruct, DB1(l,:))
> Fset(l,:) =[ l,abc];
> end
> here DB is the Feature matrix of the 999 images.
> Now when first time i execute this code it work fine, but when next time i train the SVM and then run again this code it give the Subscripted assignment dimension mismatch. error. please help me. Thanks in advance
At every iteration of loop svmclassify return 1 or 0 only.
then why it giving the dimension mismatch error. even same for the first time.