Question
In MatLab:
1. For the following differential equation: *x = Fo cos(wt) x( 0) = 0, find Set Fo 1 and w = 0.9. Starting with zero initial
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc
clear all
close all
format long
F0=1;
w=0.9;
f=@(t,y) [y(2);F0*cos(w*t)-y(1)];
[T,X]=ode45(f,[0,100],[0;0]);
plot(T,X(:,1));
disp('X is');
X(:,1)
disp('X'' is');
X(:,2)

- 5 x Pradeep - 0 X 56 Search Documentation Insert Tools Desktop Window Help A BO E I a X m x ahk.m x bisectionmethodbypradee

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
In MatLab: 1. For the following differential equation: *x = Fo cos(wt) x( 0) = 0,...
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
  • 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....

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

  • help with matlab 2. Consider the undamped oscillator equation dy + 9y = cos(wt) dt2 y(0)...

    help with matlab 2. Consider the undamped oscillator equation dy + 9y = cos(wt) dt2 y(0) = 0 v(0) = 0 What is the steady state frequency of this system? Use your solver to solve this ODE for w=4, w= 3.1, w = 3.01 and w 3. Comment on what the solutions look like as you change w. What happened with the last solution? I

  • NOTE: h=(b - a) / N Consider the differential equation y" y' +2y + cos(), for...

    NOTE: h=(b - a) / N Consider the differential equation y" y' +2y + cos(), for 0 x , with boundary conditions (0) 0.3, Show that the exact solution is (x)(sin3 cos())/10. (a). Consider a uniform grid with h (b? a)/N. Set up the finite difference method for the problem. Write out this tri-diagonal system of linear equations for yi, (b). Write a Matlab program that computes the approximate solution yi. You may either use the Matlab solver to solve...

  • 1.- Starting from the differential equation for a 1-degree of freedom system with mass M, damping...

    1.- Starting from the differential equation for a 1-degree of freedom system with mass M, damping c and spring stiffness k: a.- Show that the particular solution for the equation with an applied force fo cos(ot), i.e., Mä+ci+kx=f, cos(or) can be expressed as x )= A cos(ot) + A, sin(or) and find the values of A, and A, that solve the differential equation in terms of M, c, k and fo. 5 points. b. Use the result from part a...

  • ///MATLAB/// Consider the differential equation over the interval [0,4] with initial condition y(0)=0. 3. Consider the...

    ///MATLAB/// Consider the differential equation over the interval [0,4] with initial condition y(0)=0. 3. Consider the differential equation n y' = (t3 - t2 -7t - 5)e over the interval [0,4 with initial condition y(0) = 0. (a) Plot the approximate solutions obtained using the methods of Euler, midpoint and the classic fourth order Runge Kutta with n 40 superimposed over the exact solution in the same figure. To plot multiple curves in the same figure, make use of the...

  • (1 point) Suppose that a fourth order differential equation has a solution y = 5e3*x cos(x)....

    (1 point) Suppose that a fourth order differential equation has a solution y = 5e3*x cos(x). Find the initial conditions that this solution satisfies y(0)= 0 y'(0)=| | у" (0)- у" (0)-

  • slove in Matlab AP2. A system is modeled by the following differential equation in which X(t)...

    slove in Matlab AP2. A system is modeled by the following differential equation in which X(t) is the output and (() is the input: *+ 2x(t) + 5x(t) = 3u(t), x(0) = 0, X(t) = 2 a. Create a state-space representation of the system. b. Plot the following on the same figure for 0 st s 10 sec : i. the initial condition response (use the initial function) il the unit step response (use the step function) iii. the total...

  • Consider the differential equation y" – 7y + 12 y = 0. (a) Find r1, 72,...

    Consider the differential equation y" – 7y + 12 y = 0. (a) Find r1, 72, roots of the characteristic polynomial of the equation above. 11,2 M (b) Find a set of real-valued fundamental solutions to the differential equation above. yı(t) M y2(t) M (C) Find the solution y of the the differential equation above that satisfies the initial conditions y(0) = -4, y'(0) = 1. g(t) = M Consider the differential equation y" – 64 +9y=0. (a) Find r1...

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