Question
PART I: The Carrot Farm You operate a small carrot farm. Your farm is divided into 72 sections, and each section is capable of producing
PART I: The Carrot Farm
You operate a small carrot farm. Your farm is divided into 72 sections, and each section is capable of producing a maximum of 130 pounds of carrots in a given growing season.
Write a MATLAB script to complete the following tasks. For each task, display the task number on the screen before you display any other output.
1. Use the rand() function to represent your farm as a MATLAB array, with one array element for each section of the farm. This will give you a measure, on a scale of 0 to 1, of how well each section of your farm is doing. Display the size of your MATLAB array to the screen.
2. Find the total yield of your farm in pounds.
3. Find the average yield per section of your farm in pounds. Also find the best and worst performing sections.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started