load('test_set.mat')load('train_set.mat')train_label=[1*ones(1,6000) 2*ones(1,6000) 3*ones(1,6000) 4*ones(1,6000) 5*ones(1,6000) 6*ones(1,6000) 4*ones(1,6000) 8*ones(1,6000) 9*ones(1,6000) 10*ones(1,6000)]model = svmtrain(train_label, train_set, '-s 0 -t 0');
MATLAB: Length of label vector does not match # of instances. Error: C <= 0 model file should be a struct array matlab
MATLABsvmtrain
Related Question
- An error ” Subscripted assignment dimension mismatch” on line ‘ features(i,:)=extractHOGFeatures(img,’CellSize’,cellsize);’ what might be the problem for the given code
- The Filter function generated output is not as same as what the reference says
- Making one matrices dimension same as other
- I have two martices
Best Answer