Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a user-defined function that returns the inertia matrix for a solid rectangular prism, given its dimensions and density HINT: Re-use your code from Exercise

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Create a user-defined function that returns the inertia matrix for a solid rectangular prism, given its dimensions and density HINT: Re-use your code from Exercise 2. Problem 3. Que Function specifications: Function name: MOL_prism Input arguments a, b, c, rho - the dimensions and density (units don't really matter) Output argument the inertia matrix defined in Exercise 2. Problem 3 Q: gi bu. arg A: optic Seed Function C Reset D MATLAB Documentation 000 - - Code to call your function C Reset 1 inertia_matrix = MOI_prism (1,2,3, 2.5) 10 > Exercise 1 Problem 3 2 solutions submitted (max Unlimited) View my solutions Exercise 2 Problem Summary Problem 1 Given the dimensions of a rectangular solid, a b and c, the inertia tensor for rotation about a come Problem 2 OOOOO Problem 3 Problem 4 Problem 5 > Exercise 3 > Exercise 4 where In elke g oed 1, ey (2 + a? L=LY6+c 1. =PV do 1. E ac = PV ab > Exercise 5 > Exercise 6 > Exercise 7 > Exercise 8 Create this matrix given values of a, b, c, and that are randomly generated by the template. Vis (HINT It would be smart to calculate Ixx, lyy, etc. first, then create the matrix using these variables) > Exercise 9 > Exercise 10 > Exercise 11 Create this matrox given values of a HINT it would be smart to calculate are randomly generated by the templarie Vis the volume, which YOU SHOULD KNOW HOW TO CALCULATE AT THIS STAGE OF YOUR EDUCATION create the matrox using these vanables) Improve Best Solution Solution 2: All tests passed (100%) Submitted on 9 Jan 2020 at 10:38 | ID: 18278201 Size: 150 1 DO NOT MODIFY THESE LINES b 1. rand()*5 and()*10; cu rand()*15; therand()*5; V-be Lux (Cro )/3) (2 ) lyy - (ro)/ ( 2 2); 11 L (rho "V)/3 (12 2 ) 2 x (rhov)/a (cb) 1 x ((chov) a)-Care): I . ( V)/4 TII. T XXIX (HINT. It would be smart to calculate Ixx, y, etc. Tirst, then create the matrix Best Solution Solution 2: All tests passed (100%) Submitted on 9 Jan 2020 at 10:38 | ID: 18278201 Size: 150 1 %DO NOT MODIFY THESE LINES a = rand()*5; 4 b = rand()

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

Students also viewed these Databases questions