Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Modify - Second Order ODE.m to do the following: a) Use the ode45() function to plot the solution for: X+4x+6*+8x = f(t) where f(t)

image text in transcribed
image text in transcribed
5. Modify - Second Order ODE.m to do the following: a) Use the ode45() function to plot the solution for: X+4x+6*+8x = f(t) where f(t) = u(t) (a unit step) over the range 0 to 10 seconds. All initial conditions are zero. Plot the position and velocity on separate graphs Paste your Matlab script and your plot for problem-4 here! t, X) dep. var El function XDOT deriv El ind, var %define model parameters m=1; c=4; k=16; % define the states as "nice" names x=X (1); xdot=X (2); %define any forcing functions f=5*sin (2*t); %write the non-trivial equations using the nice names xddot= (1/m) * ( f -c*xdot k*x ); XDOT = [xdot;xddot] ; %return the derivative value

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

Step: 3

blur-text-image

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago