how to change variable name in for loop
古いコメントを表示
I am trying to do a problem for structural analysis, i got stuck in this part trying to make a for loop give me different variables, here's the example. Thanks in advance!!
for i=1:nel
kl =[J(1,i) 0 0 -J(1,i) 0 0
0 J(3,i) J(2,i) 0 -J(3,i) J(2,i)
0 J(2,i) J(4,i) 0 -J(2,i) J(5,i)
-J(1,i) 0 0 J(1,i) 0 0
0 -J(3,i) -J(2,i) 0 J(3,i) -J(2,i)
0 J(2,i) J(5,i) 0 -J(2,i) J(4,i)]
end
I need a new "kl" each iteration, can anybody help me out, it's my first month using matlab.
1 件のコメント
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Historical Contests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!