How to multiply dimension matrix ???

2 vues (au cours des 30 derniers jours)
Oman Wisni
Oman Wisni le 15 Nov 2018
Commenté : Oman Wisni le 15 Nov 2018
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 commentaires
Stephen23
Stephen23 le 15 Nov 2018
Modifié(e) : Stephen23 le 15 Nov 2018
Oman Wisni
Oman Wisni le 15 Nov 2018
Yes sir, thanks you for the answer

Connectez-vous pour commenter.

Réponse acceptée

madhan ravi
madhan ravi le 15 Nov 2018
Modifié(e) : madhan ravi le 15 Nov 2018
clear all
A=rand(220,1)'; %AN EXAMPLE
B=rand(220,11);
A*B
  8 commentaires
Oman Wisni
Oman Wisni le 15 Nov 2018
Modifié(e) : madhan ravi le 15 Nov 2018
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 le 15 Nov 2018
Modifié(e) : madhan ravi le 15 Nov 2018
Yes sir, already. Thanks for you answer and your time
madhan ravi's reply: Anytime :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by