tcogh
2009-01-31, 00:15
请教各位,在matlab里使用了libsvm-2.88-1工具箱,写下了如下代码:
model = svmtrain(label, inst, '-c 10 -g 0.07');
我想用两个变量代替上面的10和0.07,该怎么实现?
我写成了:
cnum=10
gnum=0.07
model = svmtrain(label, inst, '-c cnum -g gnum');
可惜不行,请高手指教。谢谢了!
model = svmtrain(label, inst, '-c 10 -g 0.07');
我想用两个变量代替上面的10和0.07,该怎么实现?
我写成了:
cnum=10
gnum=0.07
model = svmtrain(label, inst, '-c cnum -g gnum');
可惜不行,请高手指教。谢谢了!