1. Engineering
  2. Electrical Engineering
  3. please do all questions...

Question: please do all questions...

Question details
Please do all questions
Earlier in EGD126 we derived the below ODE for a weighted pendulum: 0 ++ sin(θ)-0 Egn (1) We also linearised the sin(0) term to get the below ODE m mL L ) Convert both Eqn (1) and Eqn (2) to a system of 1st order ODEs. 2) Apply ode45 to both systems of ODEs in 1) and plot the solutions on the same graph in MATLAB. Assume that c L-1, g -9.8 m/s, 0(0): 0, θ(0)-10. Comment on any similarities or differences. 3) Apply a for loop to vary the values of L and comment on the effect of this on the solution to Eqn (1) using ode45. Assume that c m-1, g--9.8 m/s, θ(0) 0, θ(0)-10. 4) Apply a while loop to vary the values of m and comment on the effect of this on the solution to Eqn (2) using ode45. Assume that c = L = 1, g =-9.8 m/s, θ(0) = 0, θ (0) = 10,
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution