matlab中矩阵的点乘(.*)

matlab中矩阵的点乘就是对应元素相乘:

a=[1 2 3;4 5 6]

a =

1 2 3
4 5 6

b=a

b =

1 2 3
4 5 6

a.*b

ans =

1 4 9
16 25 36

原文地址:https://www.cnblogs.com/yibeimingyue/p/13413930.html