How to multiply dimension matrix ???

조회 수: 1 (최근 30일)
Oman Wisni
Oman Wisni 2018년 11월 15일
댓글: Oman Wisni 2018년 11월 15일
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
  댓글 수: 2
Stephen23
Stephen23 2018년 11월 15일
편집: Stephen23 2018년 11월 15일
Oman Wisni
Oman Wisni 2018년 11월 15일
Yes sir, thanks you for the answer

댓글을 달려면 로그인하십시오.

채택된 답변

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