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

Passing multiple arguments, Passing Multiple Arguments: In many situai...

Passing Multiple Arguments: In many situaion it is essential to pass more than one argument to the function. For illustration, the volume of a cone is given by here r

Steady-state circuit in a series rl circuit, Q. The steady-state circuit i(...

Q. The steady-state circuit i(t) in a series RL circuit due to a periodic sawtooth voltage is given by where θ n = tan -1 (nω 0 L/R).With the parameters V A = 25 V, T 0

Implement a matlab function to calculate value, Implement a MatLab function...

Implement a MatLab function to calculate y.  The function should take two input arguments 1) A vector of parameters In the above example this would be of length 3, the first

Plot a training curve, Implement a single-layer perceptron and train it to ...

Implement a single-layer perceptron and train it to translate the digital letters given in the file "pattern1" into the corresponding ASCII representation. Plot a training curve an

Transportation problem, I want codding in matlab for vogel approximation me...

I want codding in matlab for vogel approximation method . i mean .M file for vogels approximation method.

Command reference, Matlab Command Reference 1. Getting Help: The help...

Matlab Command Reference 1. Getting Help: The help command is used to find the functions and its syntax. Similarly, lookfor is used to find the functions or topics. For examp

Grid function - plot functions, Grid function: grid shows grid lin...

Grid function: grid shows grid lines on the graph. Called by itself, it is a toggle which turns the grid lines on & off. Alternatively, the commands grid on & grid off can

Strings, Strings: The MATLAB also handles strings that are a sequence ...

Strings: The MATLAB also handles strings that are a sequence of characters in single quotes. For illustration, using the double function on a string will represent the equival

Assignment, http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nF...

http://messenger.providesupport.com/messenger/ae.html?ps_s=U4nFMQo4BP04

Digging the dirt - autonomous mining robots , Digging the Dirt: Autonomous...

Digging the Dirt: Autonomous Mining Robots   Mining is a multi-billion dollar industry and a critical part of the Australian economy. Much of the day-to-day work on mining sites

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