Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this for MatLab the elongation of the bar can be predicted using the formula: 8 = FL where is the elongation of the

image text in transcribedI need this for MatLab

the elongation of the bar can be predicted using the formula: 8 = FL where is the elongation of the bar in meters (m), F is the applied force in units of kiloNewtons (1 kN = 10' N), L is the length of the bar in meters (m), A is the cross-sectional area of the bar in units of square millimeters (mm'), and the constant E is the Modulus of Elasticity and represents the stiffness of the material due to its molecular composition and structure. The value of E is characteristic of a specific material. The units of E are expressed in gigapascals 1 GPa = 103 MPa = 109 Pa. Consider a metal bar with a length of L = 2.5 m and cross-sectional area A = 50 mm. Write a script to compute the elongation & (units of meters) of this bar when subjected to a force of F = 5 kN if it is fabricated from each of the four metals described as follows: 1. A-36 Steel bar with E = 200 GPa. 2. 6061-T6 Aluminum bar with E = 68.9 GPa. 3. AISI 302 Stainless Steel with E = 180 GPa. 4. Titanium Alloy with E = 110 GPa. Assign the four results for 8 as a row vector to a variable named elongation in the same order as the metals are listed above. Then save the array of metal names to a string variable metalNames. Be sure to use the exact spelling, spacing, and capitalization from the list above to ensure your code passes the test. Next, create a bar plot using the values in elongation as the bar heights. Label the bars with the corresponding metal names. This can be done after creating the bar plot by obtaining the current axes, modifying the 'XTickLabel' property, and modifying the 'XTickLabel Rotation property (to avoid overlapping labels) as in the commands: ax = gca; ax.XTickLabel = metalNames; ax.XTickAngleRotation = 30; the elongation of the bar can be predicted using the formula: 8 = FL where is the elongation of the bar in meters (m), F is the applied force in units of kiloNewtons (1 kN = 10' N), L is the length of the bar in meters (m), A is the cross-sectional area of the bar in units of square millimeters (mm'), and the constant E is the Modulus of Elasticity and represents the stiffness of the material due to its molecular composition and structure. The value of E is characteristic of a specific material. The units of E are expressed in gigapascals 1 GPa = 103 MPa = 109 Pa. Consider a metal bar with a length of L = 2.5 m and cross-sectional area A = 50 mm. Write a script to compute the elongation & (units of meters) of this bar when subjected to a force of F = 5 kN if it is fabricated from each of the four metals described as follows: 1. A-36 Steel bar with E = 200 GPa. 2. 6061-T6 Aluminum bar with E = 68.9 GPa. 3. AISI 302 Stainless Steel with E = 180 GPa. 4. Titanium Alloy with E = 110 GPa. Assign the four results for 8 as a row vector to a variable named elongation in the same order as the metals are listed above. Then save the array of metal names to a string variable metalNames. Be sure to use the exact spelling, spacing, and capitalization from the list above to ensure your code passes the test. Next, create a bar plot using the values in elongation as the bar heights. Label the bars with the corresponding metal names. This can be done after creating the bar plot by obtaining the current axes, modifying the 'XTickLabel' property, and modifying the 'XTickLabel Rotation property (to avoid overlapping labels) as in the commands: ax = gca; ax.XTickLabel = metalNames; ax.XTickAngleRotation = 30

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions