Question: This language is MATLAB 2. Consider a discrete function given by the values in Table 1. Table 1. A Discrete Function Point i 1 2
This language is MATLAB
2. Consider a discrete function given by the values in Table 1.
Table 1. A Discrete Function
Point i | 1 | 2 | 3 | 4 | 5 |
x-value | 1 | 2 | 3 | 4 | 5 |
y-value | -1 | 1 | 3 | 5 | 7 |
Recalling that for a linear fit the resulting equation should be of the form
y=ax+b, find the linear curve fit using: a) The mathematical technique described in Lecture 23 b) The polyfit function
3. Consider the function
b(x)=xx2+x3. Use the polyval function to evaluate
b(x) at the point
x=2, then print the results to the Command Window.
4. Consider the function
c(x)=x45x2+4. Find the zeros of the function, then print the results to the Command Window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

i
x-value
y-value