Hello. I must confess that I am rather new at this. During my courses, I was taught to place an auto increment as an id field in my tables, when in need to.
However, recently, I heard someone comment that this is to be completely avoided. But I do not understand why. Perhaps anon could point me in the right direction?
there are perfectly valid implementations . . . but unless you there is no possible other solution a DB is major overkill. but unless you there is no other solution
OH GOD WHAT'S THE ANSWER
Name:
Anonymous2010-07-21 22:44
%DEAR Anonymous: I hope this program helps you better understand your quandry. I programmed it myself, and hope you enjoy using it. I can personally explain any questions you have with it.
% Assemble element stiffness to the global stiffness
KG(LDA,LDA) = KG(LDA,LDA) + KE;
% As a check, print the element area
AREA = AREA + earea;
fprintf('The result for element %d is %f\n',ielem,earea);
end
FG=zeros(2*nnodes,1);
%ASSEMBLE THE GLOBAL FORCE VECTOR FROM GIVEN POINT LOADS
npl=length(PLOADS(:,1));
for iload=1:npl
nd=PLOADS(iload,1);
dir=PLOADS(iload,2);
val=PLOADS(iload,3);
FG(nd*2-dir,1)=FG(nd*2-dir,1)+val;
end
%take care of the displacement boundary conditions
nbc=length(DBCS(:,1));
for iload=1:nbc
nd=DBCS(iload,1);
dir=DBCS(iload,2);
val=DBCS(iload,3);