Use MATLAB commands in your solutions unless otherwise specified. You WILL be graded on simplicity of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use MATLAB commands in your solutions unless otherwise specified. You WILL be graded on simplicity of your solution and the effective use of MATLAB (comments are not only welcome but also mandatory!!). Generate your code for the entire quiz in an "m-file" or "mlx-file". If you generate an m- file: publish your script using the MATLAB publisher - make sure it publishes as a PDF file. If you generate an mlx-file (live script), you will export to pdf. Upload your script file (.m file or .mlx file) and your published or exported PDF file to the appropriate link on Canvas before the time deadline. Your published file should have a table of contents, your name, the quiz number and any figure files included. Lastly, any file you upload should have your last name in the filename (put your last name first in the filename). Example: the filename of my quiz would be "HomenQuiz2ME76Sum23.pdf". The details of a Sac State Professor's trip to San Francisco State are in the following table: Way Point Location Sac State 1 2 3 4 5 6 Davis Vacaville Vallejo Berkeley SF State Distance from Sac State (miles) 0 19.2 38.1 62.1 81.9 98.2 Time from Sac State (minutes) 0 28 38 The details of the professor's trip are as follows: They traveled a total of xx.x miles. They traveled a total of x.xx hours. They traveled at an average speed of xx.xx mph. 55 90 118 Use the data in the table for the following: 1. Create a 3-column array of Way Point, Distance from Sac State, and Time from Sac State. 2. Create a 3-column table of Way Point, Distance Traveled, and Time Traveled. Include the table in your output. Use any method to create the table-your choice. Your table should have column headings with appropriate units. 3. Plot Distance Traveled (y-axis) vs. Time Traveled (x-axis). Use indexing to extract the data from your 3-column array to plot the points. Show the data as points on the plot. Title the plot and label the axes. Include units on the axis labels. 4. Use polyfit() to create a function describing the professor's trip. Use indexing to extract the data from your 3-column array for the polyfit() function. Add this function as a best-fit line to the plot from problem 2. Should be a straight line shown through the data points. 5. Use the data in your 3-column array from Problem 1 and/or the coefficients in your best-fit line to create details (shown below) of the professor's trip to output from your code. Use indexing to extract data from your 3-column array and the polyfit() function output vector to create the values of the trip details. Use fprintf() to report the following details EXACTLY as follows (your "fprintf" output is the following FOUR lines): Report miles to one decimal point. Report time (in hours) to two decimal points. Report average speed (miles per hour) to two decimal points. Use MATLAB commands in your solutions unless otherwise specified. You WILL be graded on simplicity of your solution and the effective use of MATLAB (comments are not only welcome but also mandatory!!). Generate your code for the entire quiz in an "m-file" or "mlx-file". If you generate an m- file: publish your script using the MATLAB publisher - make sure it publishes as a PDF file. If you generate an mlx-file (live script), you will export to pdf. Upload your script file (.m file or .mlx file) and your published or exported PDF file to the appropriate link on Canvas before the time deadline. Your published file should have a table of contents, your name, the quiz number and any figure files included. Lastly, any file you upload should have your last name in the filename (put your last name first in the filename). Example: the filename of my quiz would be "HomenQuiz2ME76Sum23.pdf". The details of a Sac State Professor's trip to San Francisco State are in the following table: Way Point Location Sac State 1 2 3 4 5 6 Davis Vacaville Vallejo Berkeley SF State Distance from Sac State (miles) 0 19.2 38.1 62.1 81.9 98.2 Time from Sac State (minutes) 0 28 38 The details of the professor's trip are as follows: They traveled a total of xx.x miles. They traveled a total of x.xx hours. They traveled at an average speed of xx.xx mph. 55 90 118 Use the data in the table for the following: 1. Create a 3-column array of Way Point, Distance from Sac State, and Time from Sac State. 2. Create a 3-column table of Way Point, Distance Traveled, and Time Traveled. Include the table in your output. Use any method to create the table-your choice. Your table should have column headings with appropriate units. 3. Plot Distance Traveled (y-axis) vs. Time Traveled (x-axis). Use indexing to extract the data from your 3-column array to plot the points. Show the data as points on the plot. Title the plot and label the axes. Include units on the axis labels. 4. Use polyfit() to create a function describing the professor's trip. Use indexing to extract the data from your 3-column array for the polyfit() function. Add this function as a best-fit line to the plot from problem 2. Should be a straight line shown through the data points. 5. Use the data in your 3-column array from Problem 1 and/or the coefficients in your best-fit line to create details (shown below) of the professor's trip to output from your code. Use indexing to extract data from your 3-column array and the polyfit() function output vector to create the values of the trip details. Use fprintf() to report the following details EXACTLY as follows (your "fprintf" output is the following FOUR lines): Report miles to one decimal point. Report time (in hours) to two decimal points. Report average speed (miles per hour) to two decimal points.
Expert Answer:
Answer rating: 100% (QA)
First we need to create a 3column array of Way Point Distance from Sac State ... View the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these chemical engineering questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The payroll project that follows is the online version of the same project you completed manually in Chapter 7 of your text. For this project, you will use the Cengage Learning General Ledger to...
-
On April 15, 2020, Barrow Technology sold 2,000 shares of BrownCorporation stock for $45,000. As part of the sale, Barrow paid6%in brokerage fees. When Barrow purchased the shares, it paid $25per 2...
-
A liquid with a coefficient of volume expansion ' just fills a spherical shell of volume Vi at a temperature of Ti (see Fig. P19.47). The shell is made of a material that has an average coefficient...
-
Find the nth term of the arithmetic sequence with the given values. 2, 0.5, 1, . . . ; n = 25
-
An investigator places a sample \(1.0 \mathrm{~cm}\) from a wire carrying a large current; the strength of the magnetic field has a particular value at this point. Later, she must move the sample to...
-
Anne and Michael own and operate a successful mattress business. They have decided to take the business public. They contribute all the assets of the business to newly formed Spring Corporation each...
-
1.1 Identify and Assess Potential and Actual Risks While being observed by your assessor, facilitate risk identification and assessment activity with program stakeholders (including project managers)...
-
Show a separate graph of the constraint lines and the solutions that satisfy each of the following constraints: a. A 0.25 (A + B) b. B 0.10 (A + B) c. A 0.50 (A + B)
-
Use the graph of f(x) to find the x-intercepts of the graph and the zeros of the function. The x-intercepts are (Type ordered pairs. Use a comma to separate answers.) The zeros of the function are x...
-
A submarine is cruising at a depth of 153 m. It then rises at 4.5 m/min for 15 min. a) What is the submarine's depth at the end of this rise? b) If the submarine continues to rise at the same rate,...
-
Bozena just accepted a job offer with Doctor Medical Systems (DMS), a firm specializing in computer services for doctors. DMS offers employees a 401(k) plan to which employees may contribute 5...
-
A single Oreo cookie contains about 53 food calories. If 1 food calorie is equal to 4,184 Joules, how many repetitions of your best(fastest) exercise would you have to perform to work off the energy...
-
You moved to a new city and started a new job, what circumstances would influence you when deciding whether to rent or buy a home in the area? Based upon the tax rules, do you think the government...
-
Explain the advantage of a simple breakeven analysis and how that can help with price determination?
-
XYZ Ltd manufactures a single product, with the following data: Rs. Sales (40,000 units) 600,000 Production costs (40,000 units)- Fixed 120,000 Variable 240,000 Selling and Distribution Expenses -...
-
A firm has the following balance sheet: Assets Cash Accounts receivable Inventory Plant and equipment $ 15,000 150,000 92,000 170,000 $427,000 Liabilities and Equity Accounts payable Long-term debt...
-
Rafferty was the principal shareholder in Continental Corporation, and, as a result, he received the lions share of Continentals dividends. Continental Corporation was eager to close an important...
-
Discuss vertical restraints of trade.
-
Colgate-Palmolive Co. produced a television advertisement that dramatically demonstrated the effectiveness of its Rapid Shave shaving cream. The ad purported to show the shaving cream being used to...
-
When a honeybee flies through the air, it develops a charge of +17 pC. How many electrons did it lose in the process of acquiring this charge?
-
Falling raindrops frequently develop electric charges. Does this create noticeable forces between the droplets? Suppose two 1.8 mg drops each have a charge of +25 pC; these are typical values. The...
-
A housefly walking across a surface may develop a significant electric charge through a process similar to frictional charging. Suppose a fly picks up a charge of +52 pC. How many electrons does it...
Study smarter with the SolutionInn App