声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1565|回复: 1

[编程技巧] MATLAB中SVM使用问题

[复制链接]
发表于 2014-6-10 10:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
load fisheririsxdata = meas(51:end,3:4);
group = species(51:end);
svmStruct = svmtrain(xdata,group,'showplot',true);
species = svmclassify(svmStruct,[5 2],'showplot',true)
hold on;plot(5,2,'ro','MarkerSize',12);
hold offspecies =     'virginica'          这个是MATLAB里自带的例子,为什么我运行总出错,
错误如下: Error using svmclassify (line 59)
The first input should be a struct generated by SVMTRAIN.
求高手解答,非常感谢
回复
分享到:

使用道具 举报

发表于 2014-6-10 10:12 | 显示全部楼层
你装了其它svm工具箱没,如libsvm
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-4-27 18:18 , Processed in 0.179087 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表