Assemble of column vector in column

1 次查看(过去 30 天)
FG=[];
FG=zeros(N,1);
m=5;
for n=1:1:ne %Calling elements
for i=1:1:6
d2=dof(n,m+i-1); %Calling degree of freedom for second node
force=eval(['force',num2str(n)]); %Calling elemental force vector
FG(d2,1)= FG(d2,1)+force(i,1); %calling element of the elemental force vector and adding to global force vector
end
end
  6 个评论
Chaudhary P Patel
Chaudhary P Patel 2021-1-11
thank you sir for your help.
I got my mistake.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by