Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the problems in this homework assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in

image text in transcribed

For each of the problems in this homework assignment, write a separate MATLAB m-file. The name of each m-file must be exactly as specified in the corresponding problem statement. Submit your m-files by uploading to Blackboard before the due date. Filenames: polyfunc.m MAE 1090_HW10_1.m Create a function, polyfunc.m, that accepts a vector, x, and uses it to calculate the following polynomial: y = x^5 - 25x^4 + 207x^3 - 587x^2 + 80x + 900 Function syntax: y = polyfunc (x); Write an m-file, MAE10 90_HW10_1.m, that generates an x vector over the range 0 lessthanorequalto x lessthanorequalto 10, calculates y by passing x to polyfunc.m, and plots y. Be sure to include axis labels and a title on your plot. Filename tankvol.m Consider a conical tank, partially filled with fluid, as shown below: Write a MATLAB function, tankvol.m, that calculates the volume of fluid in the tank for a given depth of fluid, h, and tank sidewall angle, theta. Function syntax: v = tankvol (h, theta); Theta has units of degrees, and is an optional input argument with a default value of 45 degree

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_2

Step: 3

blur-text-image_3

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions