disp ('The Altered stiffness of the spring is ');
disp ( SS)
PROG4T
%Forces at the hinges
% User-defined inputs:
LL = input ('Input the total deployed length of the structure ');
L = input ('Input the height of the structure ');
k = input ('Stiffness of the spring ');
dely = input('The minimum deflection of the spring ');
h = ( 2 L "2) .5;
% calculation of the forces in the x direction, y direction and the
% resultant force
x(1)=0;
fori =2 :((L/.01 )+ 1)
x(i)= x(i- )+.01;
fx ( i ) = (( k ( h ((( x ( i ) ^2) + (L ^2)) .5) + dely)) ( cos (( atan ( L / x ( i ))))));
fy ( i ) = ((k ( h- (((x ( i ) ^2) + (L 2)) A.5) + dely)) ( sin (( atan ( L / x(i ))))));
f ( i = ( k ( h- ((( x (i ) 2 ) + ( L 2 )) .5) + dely ));
end
% Graphical representation of the results
plot (x, fx)
hold on
plot (x, fy, 'r')
hold on