Matlab 函数区域()不工作

Matlab function area() not working

内置的 matlab 函数 area() 停止工作。 我尝试 运行 文档中的示例:

Y = [1, 5, 3;
     3, 2, 7;
     1, 5, 3;
     2, 6, 1];
figure
area(Y)

但我会收到错误消息

Error using area (line 35)
Too many input arguments.

我正在使用 8.5.0.197613 (R2015a)。

创建此 CW 答案是为了表明此问题已解决。
结果证明这是与 MATLAB 搜索路径相关的问题。使用 restoredefaultpath 解决了它。

当 运行 which -all <function name>(没有 <>)并返回包含意外条目的列表时,可能会出现此问题的症状。

来自 the documentation of which:

The results are ordered according to the Function Precedence Order, unless they are shadowed. Among shadowed results, you should not rely on the order of the functions and methods in str. To determine if a result is shadowed, call which without specifying an output. which indicates shadowed results by the comment, % Shadowed.