Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I code for a matlab program? I should write my MATLAM code as below. The 10-kg rigid rod positioned on a frictionless surface

image text in transcribed

How do I code for a matlab program?

I should write my MATLAM code as below.

image text in transcribed

The 10-kg rigid rod positioned on a frictionless surface as shown in the below figure and then released from that position t=0. When L=0.4m,g=9.81m/s2, answer the following problems. L=4(IG+4mL2cos2)mL(L2sin2g)cos 2. Using MATLAB, calculate the change of angle , and plot them versus time (time span: 0 s0.3s). Submit the MATLAB codes you wrote along with the simulation results. The initial conditions of the are given as (0)=80 and (0)=0/sec. KHY_2018171031.m function KHY_2018171031() [time, cesult] = ode45(eeq, [ 10], [pi/6 ]); S's\% YOUR COOE HERE S\$S\% \% plot theta-t and theata_dot-t graph end | function dYdt =eq(t,x) SES YOUR COOE HERE S\$S\% \% compute dY/dt end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Ethics for Scientists and Engineers

Authors: Edmund G. Seebauer, Robert L. Barry

1st Edition

9780195698480, 195134885, 195698487, 978-0195134889

More Books

Students also viewed these Mechanical Engineering questions

Question

What is the Current Month Status for December 2015 in Georgia (GA)?

Answered: 1 week ago

Question

What is the KPI target value for average sales?

Answered: 1 week ago