Expected either a logical, char, int, fi, single, or double. Found an mxArray. MxArrays are returned from calls to the MATLAB interpreter and are not supported inside expressions. They may only be used on the right-hand side of assignments and as arguments to extrinsic functions.
时间: 2024-02-16 17:01:58 浏览: 321
这个错误信息是由MATLAB引起的。它的意思是你在表达式中使用了一个 mxArray 类型,而在表达式中 mxArray 类型是不被支持的。mxArray 是从MATLAB解释器调用返回的,不能在表达式中使用。您只能将 mxArray 用作赋值的右侧或作为 extrinsic 函数的参数。
要解决此问题,您需要检查您的代码,找出在表达式中使用 mxArray 类型的位置,并将其更改为支持的类型,如逻辑型、字符型、整型、单精度型或双精度型。或者,您可以将 mxArray 用作赋值操作的右侧或作为 extrinsic 函数的参数,而不是在表达式中使用它。
如果您不确定哪个变量是 mxArray 类型,请使用 whos 命令查看变量类型。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![xdf](https://img-home.csdnimg.cn/images/20250102104920.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![.pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)