How to compute a fast outer product between two matrices, in Matlab?

后端 未结 3 861
情歌与酒
情歌与酒 2021-01-07 02:27

I have two n-by-m matrices, A and B. I want to create a new matrix C which is something like:

for i = 1:n
    C = C +          


        
3条回答
  •  无人及你
    2021-01-07 03:10

    Perhaps I am misunderstanding, but I believe what you are looking for is

    C = A*B';
    

提交回复
热议问题