필터 지우기
필터 지우기

Subscripted assignment dimension mismatch.

조회 수: 2 (최근 30일)
M@lik Ali
M@lik Ali 2012년 10월 10일
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
  댓글 수: 3
M@lik Ali
M@lik Ali 2012년 10월 10일
i try clear svmstruct but still the error is same. please help me..
M@lik Ali
M@lik Ali 2012년 10월 10일
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.

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

답변 (1개)

Matt J
Matt J 2012년 10월 10일
편집: Matt J 2012년 10월 10일
execute the command dbstop if error at the command line. Then rerun your code. When the error occurs and you get the K>> prompt, check the value/sizes of abc and F.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by