Question

Question 3: DC&M 7.3; however, numerically integrate to find the evolution of the knee angle, o, from time t = 0 to time t =
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

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

clc%clears screen
clear all%clears history
close all%closes all files
format long;
J=0.154;
g=9.81;
m=4;
wn=6.28;
L=0.34;
al=0.228;
f1=@(x) [al-x(1)/(2*sqrt(J*(m*g*L/2-x(2))));wn-sqrt(m*g*L/(2*J)-x(2)/J)];
x=fsolve(f1,[1,1]);
c=x(1);
T=x(2);
f=@(t,y) [y(2); -(2*c*y(2) - 2*T*y(1) + L*g*m*y(1)^2)/(2*J)];
[T,Y]=ode45(f,[0,1],[0,2*pi]);
plot(T,Y(:,1));
xlabel('Time');
ylabel('\theta(t)');

- 5 x Pradeep APPS EDITOR Figure 1 - 0 X 56 Search Documentation Edit View Insert Tools File 0 Desktop Window W . C Help E -

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Question 3: DC&M 7.3; however, numerically integrate to find the evolution of the knee angle, o,...
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
  • only using matlab Osts 10 Problem 3 Numerically integrate the 2nd order linear differential equation on...

    only using matlab Osts 10 Problem 3 Numerically integrate the 2nd order linear differential equation on the interval y(t) = 2e" - 2e-41 and compare it to the solution a) Plot the numerical solution and the true solution for y(t) (20 pts) b) Plot the numerical solution and the true solution for dy/dt (10 pts)

  • mat lab only Osts 10 Problem 3 Numerically integrate the 2nd order linear differential equation on...

    mat lab only Osts 10 Problem 3 Numerically integrate the 2nd order linear differential equation on the interval +5 + 4y - 0 v0-0 0-6 y(t) - 2e" - 2e-41 and compare it to the solution a) Plot the numerical solution and the true solution for y(t) (20 pts) b) Plot the numerical solution and the true solution for dy/dt (10 pts)

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

  • Problem 1 (ME363/ME367) Analytically compute and numerically approximate the free response the fo...

    On MATLAB Problem 1 (ME363/ME367) Analytically compute and numerically approximate the free response the following first-order, resistor- capacitor circuit, where capacitance, C-50pF (pico-Farads) and resistance, R-200ΜΩ (mega-Ohms), for an starting voltage of 2V. The voltage, v(t), represents the potential difference across the both resistor and capacitor, which are wired in parallel 1 Cv(t)v(t)-i(t) Required steps Define a time vector called t, from 0 to 0.1s with 1000 total points. Determine the time constant,T, for this system. By hand, solve for...

  • Find an approximate solution to the pendulum problem such that d2 theta /dt2 +g/l theta =...

    Find an approximate solution to the pendulum problem such that d2 theta /dt2 +g/l theta = 0.    Use an approximate solver in matlab to find the solution to the exact equation d2 theta/dt2 +g/l * sin( theta) = 0. Compare the two solutions when the initial angle is 10, 30, and 90. Find a way to quantify the difference. One approximate method for solving differential equations is Runge-Kutta, which in Matlab goes by the name ode45. I have made a...

  • Assume that y' = y.t needs to solved i.e.one needs to find y(t) for the initial...

    Assume that y' = y.t needs to solved i.e.one needs to find y(t) for the initial condition yo = 0.3. In your Math classes, you were taught how to solve this differential equation. However, most differential equations are not easily solvable, and one needs to resort to numerical integration. This can easily be done in MATLAB for explicit first order differential equations like the one stated above. The time of interest is between tstart <t <tend let's say between O...

  • 1. Use Matlab to solve the differential equation (d^2φ/dt)=-(g/R)sin(φ), for the case that the board is...

    1. Use Matlab to solve the differential equation (d^2φ/dt)=-(g/R)sin(φ), for the case that the board is released from φ0 = 20 degrees, using the values R = 5 m and g = 9.8 m/s^2 . Make a plot of φ against time for two or three periods. To do this, you'll need two .m files: one with your main code, which calls ode45, and one with the differential equation you're solving. 2. On the same picture, plot the approximate solution...

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

  • MESSAGE M Chapter 3, Section 3.6, Question 05 Find the general solution of the differential equat...

    MESSAGE M Chapter 3, Section 3.6, Question 05 Find the general solution of the differential equation + 16-13sec"(40, 0 < t <晋 Use C, C2,... for the constants of integration. Enter an exact answer Enter in lal as In (lal), and do not simplify Equation Editor Common Ω Matrix sin(a)cos(a sec(a) 읊 ffdz).dz tan(a) : 떼 y(t)- arch MESSAGE M Chapter 3, Section 3.6, Question 05 Find the general solution of the differential equation + 16-13sec"(40, 0

  • A projectile P of mass m is fired from a point 0 with initial speed v0 at launch angle φ0 above a...

    A projectile P of mass m is fired from a point 0 with initial speed v0 at launch angle φ0 above a horizontal firing range. In addition to gravity, P is subject to the aerodynamic drag force by the surrounding air modeled as a quadratic function of speed where v is the velocity of P and k is a positive pa- rameter. 0 0 We are interested in studying the effect of Faero on various aspects of projectile motion. Since...

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