错误:类型为"double"的输入参数的未定义函数或方法"svmtrain" [英] Error: Undefined function or method 'svmtrain' for input arguments of type 'double'

查看:294
本文介绍了错误:类型为"double"的输入参数的未定义函数或方法"svmtrain"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在跑步

SVMStruct = svmtrain(xTrain, yTrain);

我得到的错误是

Undefined function or method 'svmtrain' for input arguments of type 'double'

我很确定xTrain和yTrain是矩阵:

I am pretty sure xTrain and yTrain are matrices though:

size(xTrain)
ans =
544    28


size(yTrain)
ans =
544     1

知道这是怎么回事吗?

推荐答案

听起来svmtrain函数不在您的路径上.如果

It sounds like the svmtrain function isn't on your path. If

which svmtrain

显示未找到svmtrain",则应确保具有生物信息学工具箱(键入ver并查看它是否在列表中)并且在

displays "svmtrain not found", then you should make sure that you have the bioinformatics toolbox (type ver and see if it is in the list) and it is in your path.

这篇关于错误:类型为"double"的输入参数的未定义函数或方法"svmtrain"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆