Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 6 (20 points) The following measurements were made in an experiment 4 6 3 6 7 4 9 10 12 12 20 30 a)

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Problem 6 (20 points) The following measurements were made in an experiment 4 6 3 6 7 4 9 10 12 12 20 30 a) Use your functions myLinReg, myExpoFit, and myCubicFit to determine the linear best fit, exponential best fit, and cubic best fit to the measured data. b) In a single plot, plot the measurement data as symbols, and the three fitted curves to the data. Clearly label your plot. c) Estimate the value of y at r 11 using the three fits. function [a0_a1_EmyLinReg(x,y) [a]-polyfit(x,y,1); % residual finding ry-polyval (a,x); %%Error i.e sum of square of residual E = sum ( r^2 ) ; end function [a,e) = myCubicFit (X,Y) susing least square X modify in the form of X3+X2+X1- y form [x.^3, , mod = AeX-mod'*x-mod; x.^2 , x,ones ( size (X))); | %Amatrix a=u' ; E X-mod*u-Y ; %error end P function [b,m]myExpoFit(x,y) | output = myLinReg ( x, log(y)); Retrieving b and m from ouput l 109-b = output (2); exp( Log_b) s- m-output (1); 1end 13

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions