You are on page 1of 1

%

clc, clear
pkg load symbolic

## Material Props & thickness


t=sym(8/5,'f'); E=sym(20000); v=sym(3/10,'f');
Xi=sym(0);Yi=sym(0);Xj=sym(64);Yj=sym(0);Xm=sym(0);Ym=sym(64);
## Determine the B
B=(sym(1)/(2*A))*[Yj-Ym,0,Ym-Yi,0,Yi-Yj,0;0,Xm-Xj,0,Xi-Xm,0,Xj-Xi;Xm-Xj,Yj-
Ym,Xi-Xm,Ym-Yi,Xj-Xi,Yi-Yj];
## Determine the D
D=(E/(1-v^2))*[1,v,0; v,1,0; 0,0,sym(7/20,'f')]
## yD=double(D) --> The matrix, D in floating point format.
yD=double (D)
## The element Values of K are in KN/cm
k=t*A*B'*D*B
## K=double(k) --> The matrix, K is k in floating point format.
K=double(k)

The Resulting Stiffness Matrix, K:

You might also like