How can I solve this Error message:'Interges can only be combined with ....'?
显示 更早的评论
I got error message like '' ??? Error using ==> mtimes Integers can only be combined with integers of the same class, or scalar doubles. ''
I use rotation transformation in 3D matrix. In previou, code worked well but it is suddenly interfered at rotational matrix. I checked input values but all the values are floating typed and integers. Is anyone possible to understand and have solution on the error? Thank you.
采纳的回答
更多回答(1 个)
Soyoung
2011-3-18
0 个投票
1 个评论
Walter Roberson
2011-3-18
example:
B = I .* A;
would get changed to
B = double(I) .* A;
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!