%Alexander Tadla
%CEE2330 Homework No. 6
%This program solves Number 1 for Homework No. 6
%This program solves a displacements, member end forces, and reactions for
%an indeterminate beam with a spring at midspan.
tart script
clear
clc
%Define Givens
E=45
tart part c
0ind reactions and find displacements
displacement_matrix = zeros([2*nodes,1]);
force_matrix = zeros([2*nodes,1]);
disp(' ')
disp(' ')
disp('This part of the program will solve for gloabl reactions and displacements.')
disp(' ')
disp('Label th
%this part of the program will find member forces
counter=1;
while counter<=members
c=cosd(theta_matrix(1,counter);
s=sind(theta_matrix(1,counter);
T = [c,s,0,0;-s,c,0,0;0,0,c,s;0,0,-s,c];
d1x = eval(['d_' num2str(counter) '(1,1)']);
d1y = ev