Available under Creative Commons-ShareAlike 4.0 International License.
The m-file contains the following:
% This script uses readings from a Tensile test and
% Computes Strain and Stress values
clc % Clear screen
disp('This script uses readings from a Tensile test and')
disp('Computes Strain and Stress values')
disp(' ') % Display a blank line
Specimen_dia=12.7; % Specimen diameter in mm
% Load in kN
Load_kN=[0;4.89;9.779;14.67;19.56;24.45;...
27.62;29.39;32.68;33.95;34.58;35.22;...
35.72;40.54;48.39;59.03;65.87;69.42;...
69.67;68.15;60.81];
% Gage length in mm
Length_mm=[50.8;50.8102;50.8203;50.8305;...
50.8406;50.8508;50.8610;50.8711;...
50.9016;50.9270;50.9524;50.9778;...
51.0032;51.816;53.340;55.880;58.420;...
60.96;61.468;63.5;66.04];
% Calculate x-sectional area im m2
Cross_sectional_Area=pi/4*((Specimen_dia/1000)^2);
% Calculate change in length, initial lenght is 50.8 mm
Delta_L=Length_mm-50.8;
% Calculate Stress in MPa
Sigma=(Load_kN./Cross_sectional_Area)*10^(-3);
% Calculate Strain in mm/mm
Epsilon=Delta_L./50.8;
str = ['Specimen diameter is ', num2str(Specimen_dia), ' mm.'];
disp(str);
Results=[Load_kN Length_mm Delta_L Sigma Epsilon];
% Tabulated results
disp(' Load Length Delta L Stress Strain')
disp(Results)
After executed, the command window output is:
This script uses readings from a Tensile test and
Computes Strain and Stress values
Specimen diameter is 12.7 mm.
Load Length Delta L Stress Strain
0 50.8000 0 0 0
4.8900 50.8102 0.0102 38.6022 0.0002
9.7790 50.8203 0.0203 77.1964 0.0004
14.6700 50.8305 0.0305 115.8065 0.0006
19.5600 50.8406 0.0406 154.4086 0.0008
24.4500 50.8508 0.0508 193.0108 0.0010
27.6200 50.8610 0.0610 218.0351 0.0012
29.3900 50.8711 0.0711 232.0076 0.0014
32.6800 50.9016 0.1016 257.9792 0.0020
33.9500 50.9270 0.1270 268.0047 0.0025
34.5800 50.9524 0.1524 272.9780 0.0030
35.2200 50.9778 0.1778 278.0302 0.0035
35.7200 51.0032 0.2032 281.9773 0.0040
40.5400 51.8160 1.0160 320.0269 0.0200
48.3900 53.3400 2.5400 381.9955 0.0500
59.0300 55.8800 5.0800 465.9888 0.1000
65.8700 58.4200 7.6200 519.9844 0.1500
69.4200 60.9600 10.1600 548.0085 0.2000
69.6700 61.4680 10.6680 549.9820 0.2100
68.1500 63.5000 12.7000 537.9830 0.2500
60.8100 66.0400 15.2400 480.0403 0.3000
- 1672 reads




