Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW2 P6 O solutions submitted (max 2) A fenced enclosure consists of a rectangle of length Labutted to a semicircle of radius R, see figure

image text in transcribed
image text in transcribed
HW2 P6 O solutions submitted (max 2) A fenced enclosure consists of a rectangle of length Labutted to a semicircle of radius R, see figure above. The enclosure is to be built to have an area A of 1800 fThe cost of the fence is $45/ft for the curved section and $35/rt for the straight sides. You are asked to 1. Create the length vector L from 0 to 100 with incredent of 5. 2. Compute the radii R for given area 3. Compute the cost (use variable cost) 4. Write a script to generate a plot of cost vs. L (L is on the x-axis and cost is on the y-axis). Don't forget to add x label, y label and title Hint if you don't know where to start with, pick a number for length, and try to solve this problem on paper. Programming will follow the same logic and steps Script Reset DE MATLAB Documentation 1 % Fence enclosure 2 % Given Info 7 % Create the length vector 10 % Compute radii for given area 13 % Compute the cost % plot

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

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

Students also viewed these Databases questions