小编use*_*761的帖子

为什么Matlab看不到我的功能?

我的功能肯定在起作用; 它已经过测试,并且有一点被认可.

这是函数原型:

function [X Y] = calculateEllipse(x, y, a, b, angle)
%# Code here
end
Run Code Online (Sandbox Code Playgroud)

这是我在Matlab终端上发出的电话:

calculateEllipse (612, 391, 107, 60, 331)
Run Code Online (Sandbox Code Playgroud)

这是我突然出现的错误:

??? Undefined function or method 'calculateEllipse' for input arguments of
type 'double'.
Run Code Online (Sandbox Code Playgroud)

现在,我100%肯定我和该函数位于同一目录中.我甚至用过

addpath('C:\path-to-function')
Run Code Online (Sandbox Code Playgroud)

确保;确定.它只是不起作用,我很困惑.

任何帮助表示赞赏.

matlab function file-not-found

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

file-not-found ×1

function ×1

matlab ×1