Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. A fenced enclosure consists of a rectangle of length L abutted to a semicircle of radius R. T he enclosure is to be built

image text in transcribed
3. A fenced enclosure consists of a rectangle of length L abutted to a semicircle of radius R. T he enclosure is to be built to have an area A. The cost of the fence is CS for the curved SS for the straight sides. What is the cost of the fence for L-50 ft, A-1600 n2, CS-40 S/ft, and SS-30 S? Use the space below to complete the calculations. section and Once you have done this, write a MATLAB function (called Hw04Eence) to compute the cost of the fence for any given L, A, CS, and SS. Note that your function should work if all of the arguments are scalars, vectors (of the same length), or any mixture of the above. Test your funct tion for the inputs above to make sure that you get the same answer. Now write a MATLAB script file (HW04p3.m) that generates a plot of cost vs. length for several different CS. (LetL-5,10.. .,100 ft, A 1600 f?. CS-20, 30, 40 S/ft, and SS- 30 S/ft). Your plot should be formatted well and have an appropriate legend (since it contains more than one ine)Using CAD Submit: 1) Print HW04fence function file (how to print: under editor tab, select print) 2) Publish HW04p3.m to PDF and print the PDF file. (If published properly, your PDF file should include the codes, calculation results and plot) 2R

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

In capital budgeting, what is a conventional cash flow pattern?

Answered: 1 week ago