Iterative loop function for FEA
2 ビュー (過去 30 日間)
古いコメントを表示
K=[1 2 -2,
2 1 -5,
1 -4 1]
F=[-15 -21 18]
Xo=[1 1 1]'
r=F-K*Xo
alpha=(r'*r)/(r'*K*r)
Xn=X+alpha*r
I am trying to make an iterative loop function from n=4 iteration where r, alpha, and Xn change with respect to the new Xn. I am using the conjugate gradient method for FEA. Any suggestions on possibly using a for loop?
0 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!