Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A tensile test of a composite material has provided the stress-strain data that

ID: 3859000 • Letter: A

Question

A tensile test of a composite material has provided the stress-strain data that is given in Figure 29.3e. The strain (cm/cm) and stress (MPa) are given in the first and second columns, respectively. Write a MATLAB program that reads the input text file given in Figure 29.3e, and outputs (to the command window) the longitudinal Young's modulus of the composite material. To find the Young's modulus, you may use the following regression model E = sigma_i=1^n sigma_i epsilon_i/sigma_i= 1^n (epsilon_i)^2 where E is the Young's modulus (Pa), epsilon is strain (m/m), sigma is stress (Pa). Use the fprintf command with %e format to display your output in the command window. Be sure to note the units.

Explanation / Answer

clear
clc
f=fopen('stress_strain.txt','r');
data=textscan(f,'%f %f');
strain=cell2mat(data(1));
stress=cell2mat(data(2));
stress=stress.*10^-6;
E=(sum(stress.*strain))/(sum(strain.^2));
fprintf('Young''s modulus (E):%e Pa ',E)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote