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
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 kg
For values of t from 0 to 8.25 sec in increments of 0.05 sec
Make variables c1, c2, k 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
Step by step
Solved in 2 steps with 1 images