Question

The purpose of this assignment is to illustrate one important difference between linear and nonlinear models of oscillating systems. In an undamped, unforced linear system, the period of a periodic solution depends only on system parameters and not on the initial conditions, but in a nonlinear system the period can depend on the initial conditions Consider the following nonlinear differential equation, which models the free, undamped motion of a block attached to a hard spring. (A hard spring is a spring which requires more force to stretch than a spring that obeys Hookes Law.) +0.2r30. a. Transform the second-order d.e. above into an equivalent system of first-order d.e Note: z means a raised to the third power, not the third derivative of r b. Use MATLABs ode45 solver to generate a numerical solution of this system over the interval 0 t 12π for the following two sets of initial conditions. i, x(0) = 0.2, r(0) = 0 ii. r(0)-1, r,(0)=0 c. Graph the two solutions on the same set of axes. Graph only r vs. t for each IVP; do not graph r. Do not use the plotyy command. Be sure to label the axes. Include a title that contains your name and describes the graph, something like Numerical Solutions of ++0.2r3 by I. M. Smart. Note: To get to appear in your title you will have to type in your MATLAB title command d. Based on your graph, which swolution appears to have the knger periodI need help with the matlab code, thank you.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
I need help with the matlab code, thank you. The purpose of this assignment is to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following nonlinear differential equation, which models the unforced, undamped motio...

    Consider the following nonlinear differential equation, which models the unforced, undamped motion of a "soft" spring that does not obey Hooke's Law. (Here x denotes the position of a block attached to the spring, and the primes denote derivatives with respect to time t.) Note: x means x cubed notx a. Transform the second-order de. above into an equivalent system of first-order de.s. b. Use MATLAB's ode45 solver to generate a merical solution of this system aver the interval 0-t-6π...

  • Use MATLAB’s ode45 command to solve the following non linear 2nd order ODE: y'' = −y'...

    Use MATLAB’s ode45 command to solve the following non linear 2nd order ODE: y'' = −y' + sin(ty) where the derivatives are with respect to time. The initial conditions are y(0) = 1 and y ' (0) = 0. Include your MATLAB code and correctly labelled plot (for 0 ≤ t ≤ 30). Describe the behaviour of the solution. Under certain conditions the following system of ODEs models fluid turbulence over time: dx / dt = σ(y − x) dy...

  • PLEASE use MATLAB and post the CODE too. I NEED this done by code/MATLAB and not by hand

    PLEASE use MATLAB and post the CODE too. I NEED this done by code/MATLAB and not by hand (30 pts) (a) Use a Mathematical MatLab and the concept of level curves to plot representative 1. graphs of members of the family of solutions of the differential equation 42 Experiment with different numbers of level curves as well as various rectangular regions (b) On separate coordinate axes plot the graphs of the particular solutions corresponding to the initial conditions: y(0)1; y(0)...

  • 1. 1i3 points | Previous Answers My Notee Aek Your Teacher 11 6.3.001 The given differential equa...

    1. 1i3 points | Previous Answers My Notee Aek Your Teacher 11 6.3.001 The given differential equation is a model of an undamped spring/mass system in which the restoring force Fix) in (1) md2+ dr (x) = 0 (1) is nonlinear. For the equation use a numerical solver to plot the solution curves that satisfy the given initial conditions. xit) xit) xi2) xt4) 0.5 If the solutions appear to be periodic, use the solution curve to estimate the period T...

  • If you can provide the MatLab code too, thank you! 3. The equation of motion of...

    If you can provide the MatLab code too, thank you! 3. The equation of motion of a general mass-spring system subject to an external force F(t) is mr" + cr' + kr = F(t) where m, c and k are the mass, damping coefficient and spring constant respectively. Let's consider a simple undamped system where m = 1, k = 1, and c= 0 and with forcing function F(t) = 0.5 cos(t) (all in SI units) "+=0.5 cos(1) Find the...

  • i need help writing the matlab code for this! 2. The fourth order differential equation 2.(4)...

    i need help writing the matlab code for this! 2. The fourth order differential equation 2.(4) + 3.0" – sin(t)..' + 8x = {2 can be rewritten as the following system of first order equations Ti = 12 = 13 24 = -8.01 + sin(t). 2- 3.03 + t (a) Write an m-file function for the system of differential equations. (1) Solve the system of equations over the interval ( € (0,25) for the initial conditions 21(0) = 1, 12(0)...

  • MATLAB HELP (a) Use the command dsolve to find general solutions to the differential equations below. i. y 00 + 3y = 0 i...

    MATLAB HELP (a) Use the command dsolve to find general solutions to the differential equations below. i. y 00 + 3y = 0 ii. y 00 + 4y 0 + 29y = 0 iii. y 00 − y/36 = 0 iv. y 00 + 2y 0 + y = 0 v. y 00 + 6y 0 + 5y = 0 (b) Graph each of the solutions in (a) in the same window with 0 ≤ t ≤ 10, using the...

  • Please code on MATLAB and explain D) only. Thank you The block diagram of a linear...

    Please code on MATLAB and explain D) only. Thank you The block diagram of a linear control system is shown in the Fig., where r(t) is the reference input and n(t) is the disturbance. (a) Find the steady-state value of e(t) when n(t) = 0 and r(t) tuz(t). Find the conditions on the values of a and K so that the solution is valid. N(s) R(S) E(S) S + a K(s + 3) Y(s) S (5² - 1) Controller Process...

  • Hello These are a math problems that need to solve by MATLAB as code Thank you...

    Hello These are a math problems that need to solve by MATLAB as code Thank you ! Initial Value Problem #1: Consider the following first order ODE: dy-p-3 from to 2.2 with y() I (a) Solve with Euler's explicit method using h04. (b) Solve with the midpoint method using h 0.4. (c) Solve with the classical fourth-order Runge-Kutta method using 0.4 analytical solution of the ODE is,·? solution and the numerical solution at the points where the numerical solution is...

  • Please help me code in MATLAB Consider a car of mass M that varies according to...

    Please help me code in MATLAB Consider a car of mass M that varies according to y, D sin (ot). The car is equipped with springs and shock absorbers and the vertical motion of the car is described by the following equation: d2y y(0)0 where M is the mass of the car (3000 lbm), y is the vertical displacement of the car in inches, t is the time in seconds, k is the spring constant (700 lbf/in), D is the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT