How to multiply dimension matrix ???

1 次查看(过去 30 天)
Hi, I have matrix with dimension like below :
A = 220 x 1;
B = 220 x 11;
I want
C = 1 x 11
Im trying this code
C = bsxfun(@times,A,B);
the result is C = 220 x 1.
Is there possible I get result C = 1 x 11 ???
any help will be must appreciated. Thanks

采纳的回答

madhan ravi
madhan ravi 2018-11-15
编辑:madhan ravi 2018-11-15
clear all
A=rand(220,1)'; %AN EXAMPLE
B=rand(220,11);
A*B
  8 个评论
Oman Wisni
Oman Wisni 2018-11-15
编辑:madhan ravi 2018-11-15
this sir, the result like below I want in ans have value like matrix A and B.
ans = 1 x 11 double.
madhan ravi's reply: see edited answer , also be familiar with basic fundamentals
Oman Wisni
Oman Wisni 2018-11-15
编辑:madhan ravi 2018-11-15
Yes sir, already. Thanks for you answer and your time
madhan ravi's reply: Anytime :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by