BuyFindarrow_forward

Engineering Fundamentals: An Intro...

5th Edition
Saeed Moaveni
Publisher: Cengage Learning
ISBN: 9781305084766

Solutions

Chapter
Section
BuyFindarrow_forward

Engineering Fundamentals: An Intro...

5th Edition
Saeed Moaveni
Publisher: Cengage Learning
ISBN: 9781305084766
Chapter 15.5, Problem 4BYG
Textbook Problem
8 views

Explain how you would fit a curve to a set of data in MATLAB.

To determine

Explain the steps that how you would fit a curve to a set of data in MATLAB.

Explanation of Solution

The MATLAB offers a curve fitting to obtain an equation that fits the set of data. Using the command “polyfit(x,y,n)” the coefficients of the equation (C0,C1,C2........Cn) can be found which sets the equation as mentioned below:

y=C0xn+C1xn1+C2xn2+.......Cn (1)

Here,

xandy are the given data points,

n is the number of coefficients.

Example :

Find the equation that best fits the following data points and compare the actual and predicted y values.

Consider the data points as follows,

x012345678910
y1012151923252732343641

The steps to find the equation that fits the following data points using MATLAB are as follows:

  • Draw the plot for the given data points using “plot” command.
  • Using the curve fitting method to find the best fit equation using the command “coefficients=polyfit(x,y,n)”. Here ‘n’ is the order of the poly-fit equation.
  • The value of y predicted is calculated using the quadratic equation ypredicted=C0+C1x+C2x2, where C0 , C1  and C2 are the poly-fit equation coefficients

Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started

Chapter 15 Solutions

Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
Show all chapter solutions
add
Ch. 15.5 - Explain how you would import an Excel file into...Ch. 15.5 - Give examples of MATLABs matrix operations.Ch. 15.5 - Explain how you would fit a curve to a set of data...Ch. 15.5 - Give examples of MATLABs symbolic operations.Ch. 15 - Using the MATLAB Help menu, discuss how the...Ch. 15 - In Chapter 10, we discussed fluid pressure and the...Ch. 15 - As we explained in Chapter 10 , viscosity is a...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - Using MATLAB, create a table that shows the...Ch. 15 - As we explained in earlier chapters, the air...Ch. 15 - The cantilevered beam shown in the accompanying...Ch. 15 - Fins, or extended surfaces, commonly are used in a...Ch. 15 - A person by the name of Huebscher developed a...Ch. 15 - A Pitot tube is a device commonly used in a wind...Ch. 15 - Use MATLAB to solve Example 7.1. Recall that we...Ch. 15 - We will discuss engineering economics in Chapter...Ch. 15 - A person by the name of Sutterland has developed a...Ch. 15 - In Chapter 11 , we explained the concept of...Ch. 15 - Given the matrices:...Ch. 15 - Give the following matrices:...Ch. 15 - Solve the following set of equations using...Ch. 15 - Solve the following set of equations using MATLAB....Ch. 15 - Solve the following set of equations using...Ch. 15 - Solve the following set of equations using...Ch. 15 - Find the equation that best fits the following set...Ch. 15 - Find the equation that best fits the following set...Ch. 15 - Find the equation that best fits the following set...Ch. 15 - Find the equation that best fits the...Ch. 15 - The data given in the accompanying table...Ch. 15 - The data given in the accompanying table...Ch. 15 - Write a function named Weight that when called in...Ch. 15 - The Body Mass Index (BMI) is a way of determining...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...Ch. 15 - For problems 15.33 through 15.40, go through each...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Show solutions add
Describe data and process modeling concepts and tools.

Systems Analysis and Design (Shelly Cashman Series) (MindTap Course List)

Determine the tension TB in Sample Problem 5.6 using one scalar equilibrium equation.

International Edition---engineering Mechanics: Statics, 4th Edition

What factors negatively affect latency? (476)

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)

Why might you want to install two power supplies in a critical server?

Network+ Guide to Networks (MindTap Course List)

What is the purpose of grooving a joint before welding on thick plate?

Welding: Principles and Applications (MindTap Course List)

If your motherboard supports ECC DDR3 memory, can you substitute non-ECC DDR3 memory?

A+ Guide to Hardware (Standalone Book) (MindTap Course List)