Matlab中两个矩阵相乘报错:MTIMES is not fully supported for integer classes. At least one input must be scalar

MATLAB中,对两个矩阵进行 * 相乘运算时,突然报错如下:

Error * : MTIMES is not fully supported for integer classes. At least one input must be scalar.


原因 :Error using  * 
MTIMES is not fully supported for integer classes. At least one input must be
scalar.

To compute elementwise TIMES, use TIMES (.*) instead.


double型数据 * uint8型数据 会出现上述错误

需要把uint8型数据转化成double型数据

你可能感兴趣的:(MATLAB函数)