FOR loop with matrices
古いコメントを表示
I am working on coding a problem where we have Matrix A (3x3) and vector x0 (3x1).
x(k+1) = A*x0 where k =0 this new x vector will then be multiplied to A
so x(1+1)= A*x1 and so on.
the only thing staying constant is A matrix with the vector x changing. But i want to store and keep each vector x.
I am having troubles writing this.
3 件のコメント
Jan
2012 年 3 月 9 日
Please post, what you have tried so far. It needs only 3 lines and it is not clear if this is a homework problem.
James Tursa
2012 年 3 月 9 日
Do you want A*x0, (A^2)*x0, (A^3)*x0, etc, and all the results stored in a single result matrix?
jtruxal
2012 年 3 月 10 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!