Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Open up your 'my_script.m' file that you created while working through Tutorial 2 . Then copy and paste the 9 commands from the curve fitting

image text in transcribed

Open up your 'my_script.m' file that you created while working through Tutorial 2 . Then copy and paste the 9 commands from the curve fitting example in Section 2.2 into your script file (you can delete any other commands that are in the file). Then save and execute your script file and make sure that the output produced (including the graph) agrees with the ouptut in the tutorial file. You should not proceed with the below question until this has been done correctly. By modifying the appropriate lines in your script file, find the values of a,b,c, and d so that the cubic polynomial y=ax3+bx2+cx+d passes through the (x,y) pairs (2,2),(1,6),(0,1), and (1,4). Note that to check your answer you can plot the given points together with your cubic polynomial on the same graph, and check to see that all 4 points lie on the curve (as in the tutorial file). Note that you will likely have to modify the t vector so that it corresponds with the range of x-values above. Open up your 'my_script.m' file that you created while working through Tutorial 2 . Then copy and paste the 9 commands from the curve fitting example in Section 2.2 into your script file (you can delete any other commands that are in the file). Then save and execute your script file and make sure that the output produced (including the graph) agrees with the ouptut in the tutorial file. You should not proceed with the below question until this has been done correctly. By modifying the appropriate lines in your script file, find the values of a,b,c, and d so that the cubic polynomial y=ax3+bx2+cx+d passes through the (x,y) pairs (2,2),(1,6),(0,1), and (1,4). Note that to check your answer you can plot the given points together with your cubic polynomial on the same graph, and check to see that all 4 points lie on the curve (as in the tutorial file). Note that you will likely have to modify the t vector so that it corresponds with the range of x-values above

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

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions

Question

2. Describe the major questions asked by proposal readers.

Answered: 1 week ago