Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Matlab script (vibrations.m) to do the following task: The natural period of the system is = 2 (5) Plot the displacement x(t) from

Write a Matlab script (vibrations.m) to do the following task: The natural period of the system is = 2 (5) Plot the displacement x(t) from t=0 to t=3T for both the undamped and damped system in two subplots. Remember to add appropriate annotating in your figure. A sample plot is shown below. Try to think how you would solve this problem yourself first. You can also follow the tips below to expand your code in multiple steps. (You should still add your own meaningful comments to the code). A. To begin with, open a new script in Matlab Editor and save it as vibrations.m At the beginning of the script, in a commenting area, put your name and briefly describe the code. B. Create variables for the constants: m, k, A, c and assign the values given. (You dont have to worry about the units here, just use the numbers). Then create variables for , d, T and calculate their values using equations (2), (4), (5) C. Calculate the damped and undamped vibrations. Make a time vector that is linearly spaced between 0 and 3T. Use equation (1) to calculate the undamped vibration. Use equation (3) to calculate the damped vibration. D. Plot the damped and undamped vibration as a function of time in two subplots (Ref: L5 slides 19~20). Remember to add labels, title and/or legends

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

In a factor model, what is meant by isolated tracking error?

Answered: 1 week ago