Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: Mathematical model of spring deflection. Lead team member: When trying to model a system, engineers use mathematics to help describe how data behaves.

image text in transcribedimage text in transcribed

Problem 3: Mathematical model of spring deflection. Lead team member: When trying to model a system, engineers use mathematics to help describe how data behaves. Within MATLAB the function polyfit is used to model polynomial data. The polyfit function accepts two equal- sized arrays, where the first array is the independent variable and the second is the dependent array, along with the Oftentimes it is necessary to determine what polynomial order best fits the data. The syntax for the polyfit function within MATLAB is: y = polyfit (indVariable, depVariable, numOrder) It will output the coefficients for a polynomial of order n that best fits the data contained in the vectors. The generic form being: y = Cox" + C7xn-1 + CzXn-2+ ... + Cn For example, a polynomial of order 1 would be a line: y = C. X + Cn Note: The coefficients [CO, C1, ...... Cn+1] are returned by polyfit as a vector with the intercept presented first (e.g. Pn+1, Pn, Pn-1.... p1]. You therefore need to index the coefficients to create the equation for the data set. The data given below represents the force-deflection data points on a spring. Force (N) Spring Deflection (mm) 10 18 15 30 40 a) Create a plot of the data using "five pointed stars" as the data points (not a line) and copy plot here. Make sure that the plot is properly formatted (e.g. title, labels) and is of a size that is legible. Plot: ENSC 192 Spring 2020 b) Find the equation that best fits the force-deflection data given using polyfit (look up in help if you need more information). Copy code here: Code: Output: What is the equation of this line? (use the variable names in the equation, not x and C) c) Output a properly formatted table that includes the force, deflection, and predicted deflection values (use the equation you generated in part B). Copy code and table output here: Code: Output table

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

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions