yibeimingyue

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

分类:

技术点:

相关文章: