Question: % please solve this with ode 4 5 , and explain how . I need the matlab plots, please provide me plots screen shots and
please solve this with ode and explain how I need the matlab plots, please provide me plots screen shots and matlab codes.
clc;
clear;
clear all;
System numerical values
mcrank ;
Icrank ;
mrod ;
mslider
lcrank ;
lrod ;
g ;
Symbolic equations
syms theta x
Angulat velocity omega Slider velocity vslider
omega difftheta;
vslider diffx;
C will be used in Trod
c sqrtlrodlcranksintheta;
Kinetic energy formulas
Crank kinetic energy:
Tcrank mcranklcrankomega;
Connected rod kinetic energy:
Trod mrodomegalrodlcrankcosthetac
lcranksinthetalcrankccosthetasintheta;
Slider kinetic energy:
Tslider mslidervslider;
Potantial energy formula
Connected rod potential Energy
Vrod mrodglcranksintheta;
Lagrange equation
T Tcrank Trod Tslider;
V Vrod;
L T V
Lagrange diff
Ltheta diffL theta
Lthetadot diffLtheta, omega
Qtheta symtau; Applied torque to crank
eq Lthetadot Ltheta Qtheta
Initial conditions
theta pi; Initial angle
thetadot; Initial angular velocity
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
