Subscripted assignment dimension mismatch.
古いコメントを表示
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 件のコメント
Muruganandham Subramanian
2012 年 10 月 10 日
Because, the result or data (svmstruct) will be stored in workspace. To avoid this, you can do with command before this by adding 'clear svmstruct'.
M@lik Ali
2012 年 10 月 10 日
M@lik Ali
2012 年 10 月 10 日
回答 (1 件)
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.
カテゴリ
ヘルプ センター および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!