What does it mean by *+ operation
9 次查看(过去 30 天)
显示 更早的评论
I found someone using *+ in their code, but I don't know what this operation does. For example,
ones(3,3)*+ones(3,3)
yields a 3*3 matrix whose entries are all 3.
0 个评论
回答(1 个)
Steven Lord
2016-6-6
In this context + is the unary plus. See the help for uplus. Once MATLAB has applied uplus to the second array, it then performs normal matrix multiplication.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!