1 we want to find the integral of a function at an

Assignment Help Applications of MATLAB
Reference no: EM13346574

1. We want to find the integral of a function at an arbitrary location x from the origin.  Thus,

2403_find the integral of a function at an arbitrary location.png

where I(x=0) is the value of the integral for all times less than 0.  (Essentially, I(x=0) is the unknown constant of integration or the initial condition.)  From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

52_find the integral of a function at an arbitrary location1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule.  Your function should accept two vectors as inputs, x and f.  The first vector (x) contains the independent variable data (the points at which the values of the function are known.  The second vector (f) should contain the values of the function at the points provided in the first vector.  Your function should return the integral of f with respect to x, as a function of x.

2.  The mass of the spring-mass-damper system shown below was initially displaced by 1 meter to the right and then released. The subsequent acceleration of the mass was measured using an accelerometer; this data is contained in the file smd_data.txt posted on the class web site. The file contains ascii data which provides the acceleration of the mass as a function of time; the first column of data in the file is time in seconds, the second column is the acceleration in meters/sec2. We wish to determine the maximum compressive force experienced by the spring during the time range provided in the data.  The spring force is equal to the spring rate times the displacement,  Fspring = kx.

1788_find the integral of a function at an arbitrary location2.png

Write a script file which will determine the displacement of the mass as a function of time from the acceleration data.  Trapezoidal integration will provide sufficient accuracy to infer the position and velocity of the seat as a function of time.  Your program should plot the position of the mass as a function of time.  You can use this plot to estimate the maximum negative displacement of the mass; the maximum compressive force is this displacement times the spring rate (k = 100 N/m).

 3.  We wish to numerically perform the following integration: 

1175_find the integral of a function at an arbitrary location3.png

(a) Use Matlab's quad function to perform the above integral.

(b) Analytically evaluate the integral (e.g. do the integration by hand).

Reference no: EM13346574

Questions Cloud

1nbsp find the natural domain of the following functions : 1.nbsp find the natural domain of the following functions. explain your results.2. given the equation y x2 - 6x 8 find
Product and engineering design review8 x product : product and engineering design review8 x product engineering and design review week 2 ndash 12 3 pages per item which
Add drop down lists for modifying the different style : add drop down lists for modifying the different style elements for the label element that displays the time.we will do
Report on american express - marketing strategycredit card : report on american express - marketing strategy.credit card industry was in boom before the recessionary phase but due
1 we want to find the integral of a function at an : 1. we want to find the integral of a function at an arbitrary location x from the origin.nbsp thuswhere ix0 is the
Write an essay onnbspwomen and gender : write an essay onnbspwomen and gender studies.introductionnbspthe first reading of gender and bodily difference
You will need a bottomuptwothreefourtree class with a : you will need a bottomuptwothreefourtree class with a bottomuptwothreetreefourtree constructor which takes no
Nbspa solution of 0100 m acetic acid is prepareda what is : nbspa solution of 0.100 m acetic acid is prepared.a what is its ph value? b if 20 of the initial acetic acid is
Lipid rafts provide another example of the complexity of : lipid rafts provide another example of the complexity of cell surfaces in both their structural character and biologic

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Problem consider a trapezoidal piece of polymer film as

problem consider a trapezoidal piece of polymer film as shown below. the parallel sides of the trapezoid are insulated

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd