With the MATLAB editor, please make a script m-file for the following: Simple harmonic motion is a mass connected at the end of a lossless spring.   The position of the spring is defined by: y(t) = c1cos(ωt) + c2sin(ωt) Where  The kinetic energy of the mass is defined by:   And that c1 = 0.172 m, c2 = 0.012 m, k = 3.2 N/meter and m = 0.32 kgFor values of t from 0 to 8.25 sec in increments of 0.05 secMake variables c1, c2, k and m and assign valuesPlease Calculate the value of omega in rad/secFind the values of y in cm and KE in JoulesUsing subplots make two side by side plots within one figure:Display the results on a x-y scatter plot With t the independent variable plotted on the x axisAnd y the dependent variable plotted on the y axisInclude units within the labels Show the results on a x-y scatter plot With t the independent variable plotted on the x axisAnd KE the dependent variable plotted on the y axisInclude units within the labels

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

With the MATLAB editor, please make a script m-file for the following:

Simple harmonic motion is a mass connected at the end of a lossless spring.

 

The position of the spring is defined by:

y(t) = c1cost) + c2sint)

Where 

The kinetic energy of the mass is defined by:

 

And that c1 = 0.172 m, c2 = 0.012 m, k = 3.2 N/meter and m = 0.32 kg
For values of t from 0 to 8.25 sec in increments of 0.05 sec
Make variables c1c2k and m and assign values
Please Calculate the value of omega in rad/sec
Find the values of y in cm and KE in Joules
Using subplots make two side by side plots within one figure:
Display the results on a x-y scatter plot

With t the independent variable plotted on the x axis
And y the dependent variable plotted on the y axis
Include units within the labels

Show the results on a x-y scatter plot

With t the independent variable plotted on the x axis
And KE the dependent variable plotted on the y axis
Include units within the labels

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY