Iterations on large matrices

I have a 52 by 24 matrix that i need to carry out multiple regression. How do i iterate the loop to get the column and row coefficients? The model of the equation is L(i,k)=aL(i, k-1)+b(k) where k is the column, i is the row and a and b are coefficients of regression. The row equation is L(i,k)=cL(i-1,k) + d(i) and c and d are row coefficients. Can one help me with the iteration of this to get the coefficients through the 24 columns and 52 rows.

3 commentaires

Rik
Rik le 5 Mar 2018
What have you tried yourself? And what should happen for i==1 and/or k==1? (a more knit-picky point: 52x24 is not big at all in Matlab. Medical images are frequently 512x512x400)
Lui
Lui le 5 Mar 2018
The initial conditions can be taken to be the first column and first row. Then we iterate through the remaining 23 columns and 51 rows.
Bob Thompson
Bob Thompson le 5 Mar 2018
There might be a faster way, but why not just use for loops? You have the equations necessary for each row and column, so run either the first row, or first column, and then you have initial values for every column or row, whichever you didn't solve for first.

Connectez-vous pour commenter.

Réponses (0)

Question posée :

Lui
le 5 Mar 2018

Commenté :

le 5 Mar 2018

Community Treasure Hunt

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

Start Hunting!

Translated by