0

我浏览了这个文档的例子:

表示偶数整数的类型和属性 - MATLAB

我什至复制粘贴了示例 1。但似乎我遇到了错误:

>> testtype(2, Type::Even),
testtype(-4, Type::Even),
testtype(8, Type::Even),
testtype(-11114, Type::Even),
testtype(4185296581467695598, Type::Even)

 testtype(2, Type::Even),
                 |
Error: Unexpected MATLAB operator.

该文档也可以在我的 Matlab 帮助窗口中看到。有谁知道我做错了什么?提前致谢。

[我知道我可以用其他方式测试这些。但我想知道为什么它不起作用。]

4

0 回答 0