Consider the truss illustrated in Figure 1.
2m
1m
B
1m
E
1m
1m
Figure 1: The studied truss
Write a MATLAB function whose inputs are:
- The cross-sectional area of each bar
- The modulus of elasticity of each bar
- The maximum allowed horizontal displacement of point E
- The maximum allowed normal tensile stress in each bar
The outputs of the MATLAB function are:
- The load P that generates the maximum allowed displacement at E
- The actual stress generated by P in each bar
- A message that shows if the design is safe or not, along with the factor of safety