Question

using ZIR and 5.1 Use Matlab to find and plot the total response for the differential equation ZSR approach. (D2 +5D 6)y(t)x( I NEED THE MATLAB CODE NOT THE ANALYTICAL SOLUTION !!!!
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hello,
          Please find the answer attached as under. Please give a thumbs up rating if you find the answer useful! Have a rocking day ahead!

****************** Matlab Code *******************

%%%%%%%%%%%%%%%%%%%%%%
%% solving differential equations

syms y(t)
Dy = diff(y);
ode = diff(y,t,2)+5*diff(y,t)+6 == exp(-t)*sin(10*t);
cond1 = y(0) == 1;
cond2 = Dy(0) == 2;
conds = [cond1 cond2];
ySol(t) = dsolve(ode,conds);
ySol = simplify(ySol);
ezplot(ySol(t))
xlabel('Time(s)');

************ End of Code **************

Output:

y = 191/2525 - (953*exp(-5*t))/1450 - (15*cos(10*t)*exp(-t))/5858 - (26*sin(10*t)*exp(-t))/2929 - (6*t)/5

Plot:

1010 ...- (exp(t) (375 cos(10 t)+1300 sin (10 t) 243078 exp(t) +175740 t exp(t)))/146450 D.5 1.5 -2 2.5 1 -6 -2

*****************************************************************
PS: Please do not forget the thumbs up!

Add a comment
Know the answer?
Add Answer to:
I NEED THE MATLAB CODE NOT THE ANALYTICAL SOLUTION !!!! using ZIR and 5.1 Use Matlab...
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
  • a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): 2x + 2x + x=u, x(0) = 0, *(0) = 0 where u is the Unit Step Function (of magnitude 1). a. Use MATLAB to obtain an analytical solution x(t) for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for x(t). Also obtain a plot of .x(t) (for a simulation of 14 seconds)...

  • 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)...

  • 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)...

  • write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle...

    write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....

  • Need the matlab code for plots Consider the RLC circuit in Fig. 5, based on the...

    Need the matlab code for plots Consider the RLC circuit in Fig. 5, based on the differential equation relating x() and y() that you obtained from the pre-lab exereise, f -0.2H, C-04F and R-52. i. Plot the zero-input response if y(0)- 1 and y (0)-8 i. Plot the total output response y() if the input signal is [3sin()+2co)), with y(0)= l and y'(0)= 8; Label your plots properly. x(t) Ф R y(t) Fig. 5 RLC circuit network with a shunt...

  • Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the...

    Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the mechanical system shown below bi FLR) orce CN) voltege ) 2.) Obtain the differential equation for the electrical system shown below shown below OAF 3.) Find the transfer functions corresponding to the differential equations found in questions I and 2 the 4) Let the input force applied to the block of the mechanical system be zero U)-のThe initial conditions are y(0) = 10 cm and dy(0)d-0....

  • Please write and include a matlab code for the following: Given the following differential equation 10?̈+...

    Please write and include a matlab code for the following: Given the following differential equation 10?̈+ 20?̇ + 250? = ?(?) a. Plot response to f(t) = 200sin(4t) b. Plot response to a step f(t) = 200 that starts at t = 0 s and stops at t = 2s; note that the response goes past the 2 seconds of input. Part a.) I need matlab code to generate the plot for 10x''+20x'+250x=200sin(4t) Part b.) I need matlab code to...

  • Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): where u is the Unit Step Function (of magnitude 1 a. Use MATLAB to obtain an analytical solution x() for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for ao. Also obtain a plot of x() (for a simulation of 14 seconds) b. Obtain the Transfer Function representation for the system. c. Use MATLAB to obtain the...

  • Please show all the steps, Thank you! Find yol(t), the zero-input component of the response for an LTIC system described by the following differential equation: (D2 + 6D +9)y(t) (3D+5)r(t) where the i...

    Please show all the steps, Thank you! Find yol(t), the zero-input component of the response for an LTIC system described by the following differential equation: (D2 + 6D +9)y(t) (3D+5)r(t) where the initial conditions are yo(0)-3)0(0) -7 Find yol(t), the zero-input component of the response for an LTIC system described by the following differential equation: (D2 + 6D +9)y(t) (3D+5)r(t) where the initial conditions are yo(0)-3)0(0) -7

  • USE MATLAB ONLY NEED MATLAB CODE MATLAB 21.4 Integrate the following function analytically and using the...

    USE MATLAB ONLY NEED MATLAB CODE MATLAB 21.4 Integrate the following function analytically and using the trapezoidal rule, with - 1,2,3, and 4: 0 (x + 2/x dx 0 Use the analytical solution to compute true percent relative crrors to evaluate the accuracy of the trapezoidal approximations. 0

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