?? accumulatematrix.m
字號:
function KK = AccumulateMatrix(Ae,ia)
% Accumulates the f.e. matrices to a global f.e. matrix
% INPUT:
% element matrices Ae[loc,loc,nelem],
% element connectivity ia[loc,nelem] for local to global node numbering.
% The node numbering starts with 1 (Fortran style).
%
nnode = max(max(ia)); % number of nodes
KK = zeros(nnode,nnode);
for i=1:size(Ae,3)
for k=1:size(Ae(:,:,i),1)
ik = ia(k,i);
for l=1:size(Ae(:,:,i),2)
il = ia(l,i);
KK(ik,il) = KK(ik,il) + Ae(k,l,i);
end;
end;
end;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -