Create a matlab script file, MATLAB Programming

Assignment Help:

Damped free vibrations can be modelled by considering a block of mass m that is attached to a spring and a dashpot as shown.

2474_Damped free vibrations.png

From Newton's second law of motion, the displacement x of the mass as a function of time can be determined by solving the differential equation:

2219_Damped free vibrations1.png

where k is the spring constant, and c is the damping coefficient of the dashpot. If the mass is displaced from its equilibrium position and then released, it will start oscillating back and forth. The nature of the oscillations depends on the size of the mass and the values of k and c.

(a) Create a MATLAB script file that calls for input of m, k, c, and xo. This file calls at least two functions i.e. function (b) that calculate x and v, and function (c) that animates the mass motion.

(b) Create a function M-file that calculates the displacement x and the velocity v of the mass, as function of time, t.

(c) Create another function M-file to create the animation of the mass motion.

(d) Demonstrate the program for two cases: 

(i) c = 3 N-s/m for 0 ≤ t ≤ 20s

(ii) c = 50 N-s/m for 0 ≤ t ≤ 10s

For the system shown in the figure m = 10kg, and k = 28 N/m. At time t = 0 the mass is  displaced to x = 0.18m, and then released from rest.

(e) Write a report describing your programs developed in (a), (b), and (c), and comment on your observation of the results from the two cases in (d).


Related Discussions:- Create a matlab script file

Create a model or spreadsheet in matlab, The pressure radiated by a column ...

The pressure radiated by a column of in-phase monopole sources may be expressed as: Create a model (spreadsheet / MATLAB etc) for a 6 element column, where d=0.2m . Figure

Calculate displacement using indefinite integrals, Problem: A function ...

Problem: A function is given by Y= 2x3 + 3 x2 -12x + 5 a determine the finite values of x at which any local maximum of minimum occur and determine the corresponding val

Develop a matlab program to design algorithm, Write a pseudo-code showing t...

Write a pseudo-code showing the list of steps to take for solving the given problem. In this process, you should identify the functions that are to be used in the program. Develop

Illustration of script, Illustration of script: For illustration, we w...

Illustration of script: For illustration, we will now generate a script known as script1.m which calculates area of the circle. It assigns a value for the radius, and then com

Random numbers, Random numbers: Whenever a program is being written to...

Random numbers: Whenever a program is being written to work with a data, and the data is not yet available, it is frequently useful to test the program first by initializing t

Find and compute the natural frequencies, An electric overhead traveling cr...

An electric overhead traveling crane, consisting of a girder, trolley, and wire rope, is shown in figure. The girder has a flexural rigidity (EI) of 6x10 12 lb.in 2 and a span (L

Determine standard deviation, Find f(t) for each F(s): Problem: ...

Find f(t) for each F(s): Problem: Based on an examination given to a large class in which the maximum score is 100 points, assuming that 20 grades taken at random f

EMG, How to make EMG analysis by Matlab?

How to make EMG analysis by Matlab?

Write Your Message!

Captcha
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