Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab work Problem 4 (25 points): MATLAB script-3 Create a .m file (script file) that can perform several different calculations for solid conical objects. Be

image text in transcribed

Matlab work

Problem 4 (25 points): MATLAB script-3 Create a .m file (script file) that can perform several different calculations for solid conical objects. Be sure you use element-wise operators when doing arithmetic operations on arrays. Ask the user to input 3 equal-length row vectors called Diam, Ht, and Den. They will include the diameter, height, and densities of corresponding conical objects respectively. Create a new vector named Vol, in which each element is the volume of the object whose diameter, height, and specific gravity are in the same relative positions in Diam, Ht, and Den. Create a new vector named Mass, in which each element is the mass of the object whose parameters are the same relative positions in Diam, Ht, Den, and Vol. Determine the average volume of all cones and place the result in AvgCone. Determine both the heaviest and lightest cone, placing the results in HeavyCone and LightCone. Determine the height of the heaviest cone and place the result in HeavyHt. [Note: The heaviest cone is not necessarily the largest.] Display "The average volume for the given conical objects is X.XX." using the fprintf command. Display "The heaviest cone was X.X with a height of X.X and the lightest was X.X. using the fprintf command. Verify your code using the data in the table below. | Material Density Diameter Height | Volume 11 Titanium 4.5 g/cm 4 cm 15 cm 62.8 cm' 2 Silver 10.5 g/cm | 5 cm 9 cm 58.9 cm 3 Brass 8.8 g/cm 3 cm 11 cm 25.9 cm Mass 282.7 g 618.5 g 228.1 g Output statements: The average volume for the given conical objects is 49.22. The heaviest cone was 618.5 with a height of 9.0 and the lightest was 228.1

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago

Question

Explain the functions of financial management.

Answered: 1 week ago

Question

The Functions of Language Problems with Language

Answered: 1 week ago

Question

The Nature of Language

Answered: 1 week ago