フィルターのクリア

How can I creat a "for" that builds more than one matrix?

2 ビュー (過去 30 日間)
Emanoel Santos
Emanoel Santos 2022 年 10 月 20 日
Basically, I need to creat a Space Truss Member Stiffness Matrix for Member Axes, and every single beam of the truss needs a Stiffness matrix. 'xbar' contain the number of beams in the space truss. The main objective is to get the number of matrix that I need to use the element finite method. But I don't know how to do this at Matlab. I try it earlier this way, but I got the "()-indexing must appear
last in an index
expression. " error.
for i = 1:xbar
rigidlocal(i) = zeros(xbar,xbar);
rigidlocal(i)(1,4) = -1;
rigidlocal(i)(4,1) = rigidlocal(1,4);
rigidlocal(i)(1,1) = 1;
rigidlocal(i)(4,4) = rigidlocal(1,1);
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeStructural Analysis についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by