how to use for loop for iterations in matrices?
Show older comments
Hello, how can I use for loop for these operations?
let x1= rand(5,3);
and x2= rand(5,3);
also, A1=x2*pinv(x1);
Now, I want to use A1 and x2 to get X3, i.e
x3=A1*x2;
and then,
A2=x3*pinv(x2);
x4=A2*x3; and so on.
I want to get the final X matrix after 10 iterations using for loop. i.e x10.
Thank you
Accepted Answer
More Answers (0)
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!