Matlab路径问题:尽管安装了Curve Fitting Toolbox,但找不到样条函数
这是我的路径的输出:
/Applications/MATLAB_R2009b.app/toolbox/curvefit/curvefit
/Applications/MATLAB_R2009b.app/toolbox/curvefit/cftoolgui
/Applications/MATLAB_R2009b.app/toolbox/curvefit/sftoolgui
当我使用我运行任何东西时,
spap2
csapi
我得到
???输入参数类型的未定义函数或方法“csapi” “双”。
知道我做错了什么吗?
此帖子似乎解决了类似的问题,但它不是我的版本,即 R2009b。
Here is the output of my paths:
/Applications/MATLAB_R2009b.app/toolbox/curvefit/curvefit
/Applications/MATLAB_R2009b.app/toolbox/curvefit/cftoolgui
/Applications/MATLAB_R2009b.app/toolbox/curvefit/sftoolgui
When I run anything using
spap2
csapi
I get
??? Undefined function or method 'csapi' for input arguments of type
'double'.
Any idea what I'm doing wrong?
This post seems to address a similar issue but it's not re my version, which is R2009b.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢大家的意见。最后,通过升级到 7.13 (2011b) 解决了这个问题。我相信这可能是一个类似于我在OP中链接的帖子的问题。
样条线绘图函数(以前的 Spline Toolbox,已弃用)现在似乎都在 Curve Fitting Toolbox 中。因此,如果您有早期版本的 Matlab(<2010),即使您有曲线拟合工具箱,它也会在错误的位置(样条工具箱)搜索这些函数。我认为如果您碰巧也安装了 Spline Toolbox,那么这些函数只能在较旧的 Matlab 安装上运行。
同样,这里的解决方案是升级您的 Matlab 安装和曲线拟合工具箱。然后您就可以访问我上面提到的功能。
Thanks to all for your input. At the end, this was resolved by running an upgrade to 7.13 (2011b). I believe this may be an issue similar to the post I linked in the OP.
It appears that spline plotting functions (former Spline Toolbox, deprecated) are now all in the Curve Fitting Toolbox. So if you have earlier versions of Matlab (< 2010), it will search for those functions in the wrong place (Spline Toolbox) even if you have the Curve Fitting Toolbox. I presume those functions would only work on an older Matlab install if you happen to have the Spline Toolbox installed as well.
Again, the solution here is to upgrade both your Matlab install and your Curve Fitting Toolbox. Then you'll have access to the functions I mentioned above.