Assemble of column vector in column

1 Ansicht (letzte 30 Tage)
Chaudhary P Patel
Chaudhary P Patel am 11 Jan. 2021
Kommentiert: Mathieu NOE am 12 Jan. 2021
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 Kommentare
Chaudhary P Patel
Chaudhary P Patel am 11 Jan. 2021
thank you sir for your help.
I got my mistake.
Mathieu NOE
Mathieu NOE am 12 Jan. 2021
ok - good luck for the future

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by