Search for question
Question

2. Ohm's law states that the voltage, resistance and current in a resistor are related by the

linear equation V=RI. In practice, however, real resistors may not always obey this law.

Suppose that you performed a precise experiment in the lab and obtained the following

data for the resistor.

I

V

-2

-637

-1

-96.5

-0.5

-20.5

0.5

20.5

1

96.5

2

637

Use a fifth-order polynomial to fit the data and compute V for 1 = 0.1. Employ function

newtintr. Next, use Matlab's polyfit to generate the interpolation polynomial. Plot the data

points and the polynomial, on the same graph, for x-axis limits [-2.2 2.2].

Fig: 1