loop of linear combination of columns

1 view (last 30 days)
Montassar Bellili
Montassar Bellili on 24 Sep 2020
Commented: Rena Berman on 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.

Answers (1)

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

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!