loop of linear combination of columns

1 vue (au cours des 30 derniers jours)
Montassar Bellili
Montassar Bellili le 24 Sep 2020
Commenté : Rena Berman le 8 Oct 2020
Hi,
Can Any one help me to calculate this θ matrix without loop?
let
A=randn(M,N)
B=randn(J,M)
I want to calculate the θ matrix using this formula
: the column vector of θ
: the elemnt in the row vector and column vector of A
: the column of B
thanks.
  1 commentaire
Rena Berman
Rena Berman le 8 Oct 2020
(Answers Dev) Restored edit

Connectez-vous pour commenter.

Réponses (1)

Ameer Hamza
Ameer Hamza le 24 Sep 2020
Isn't it just
theta = B*A;

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by