Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MATLAB main function that will call subfunctions to accomplish the task described below. All code must be contained within a single m -

Write a MATLAB main function that will call subfunctions to accomplish the task described below.
All code must be contained within a single m-file and you should submit your lab m-file using Canvas.
Unless specified, you can handle the flow of the program however you choose.
Feel free to discuss the assignment, but you must do your own work.
Do not echo the results of the tasks below to the MATLAB Command Window.
Comment your work.
In mechanical testing, load cells and extensometers are often used to measure the response of a specimen to
loading. A load cell outputs a voltage that can be calibrated to measure load (i.e. force) on a specimen.
Extensometers output a voltage that can be calibrated to measure the distance between the two extensometer
arms, which, when in contact with the specimen, will move when the specimen deforms and can be used to
measure specimen deformation.
A cylindrical specimen (SI-01) was glued into end caps for mechanical testing and tested using a transient
loading protocol consisting of a series of trapezoidal loading pulses followed by recovery periods. Deformation
data was collected using one load cell and 3 extensometers: one extensometer (E1) was mounted across the
specimen end caps to record axial deformation and two and {:E3) were mounted in contact with the specimen
to record deformation in two transverse directions. Data was collected at 200Hz for the length of the test (e.g.,
data was collected every 1200sec. for a time period before the specimens were loaded and then until the final
recovery period ended). Extensometer data was recorded in mm(after being converted from voltage) and load
data was recorded in N(after being converted from voltage).
Prior to testing, a set of deformation calibration equations were collected. All extensometer deformation (d) data
must be corrected by the following equations:
Extensometer 1: d1-actual(mm)=0.9924**d1-measured+0.00328
Extensometer 2: d2-actual(mm)=1.3260**d2-measured+0.00696
Extensometer 3: d3-actual(mm)=1.3765**d3-measured-0.000015
Actual extensometer deformation data can be converted to strain data (nondimensional) by dividing by the
extensometer gage length. For E2 and E3, the actual gage lengths (gactual) are determined as sum of
extensometer gage length and the average of the first 2000 deformation measurements (prior to load being
applied to the specimen). The extensometer gage lengths for E2 and E3 are 7.995mm and 8.010mm,
respectively. For E1, the (effective) gage length is determined as sum of the exposed length of the specimen
(i.e. length visible between the end caps) and half of the length of specimen embedded within the endcaps. The
total length of the specimen was 24.13mm and the length exposed between the end caps was 13.72mm.
Load cell data (N) can be converted to stress data (MPa) by dividing by the specimen area, with 1MPa=1N/
mm2. The diameter of the cylindrical specimen was estimated as the mean of g2-actual and g3-actual.
Tasks
Subfunction 1: Read in the data (provided in SI-01.xIsx). Correct extensometer data and determine strain
data, as described above, using anonymous functions. (Use one anonymous function to correct data for all
extensometers and use one anonymous function to determine strain for all extensometers). Determine stress
data, as described above, using an anonymous function. Calculate a time vector for all recorded data
assuming that data collection started at time =0sec.
Subfunction 2: Plot stress data and extensometer data as functions of time in individual plots all within the
same MATLAB figure. The stress vs time plot should be at the top of the figure with strain vs time plots
below in extensometer order (e.g.E1, then E2, then E3). Label axes for each plot appropriately. Include a
title giving the specimen name at the top of the figure (over the stress vs time plot).
image text in transcribed

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_2

Step: 3

blur-text-image_step3

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

ISBN: B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

Critique why humans fall prey to perceptual illusions.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago