Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The following table shows experimental measurements for the power (in V) for a r

ID: 2084784 • Letter: T

Question

The following table shows experimental measurements for the power (in V) for a resistance that is fed with a constant current (in A): Using interpolation, find V(I = -0.25A) and V(I = +0.75 A). ii. Use polyfit functions to find a quadratic relationship between V and I and use it to find R. iii. Calculate the new values of the voltage, V_new, using polyval function and Plot the relationship between both V and V_new (on the y-axis) versus the current I (on the x-axis), using a dotted line and markers for V and solid line for V_new. iv. Find the value of I that corresponds to the maximum absolute error between V and V_new.

Explanation / Answer

the interplotation for the voltage and currents in matlab can be plotted form the following matlab code

**************************************************************************************

%Hermite Interpolation
clc;
clear all;
disp('OUTPUT');
x=input('Enter the values of x in matrix format=');
y=input('Enter the values of y in matrix format=');
dy=input('Enter the values of dy/dx in matrix format=');
xp=input('Enter the value of x where y should be found=');
a=[1,x(1),x(1)^2,x(1)^3;1,x(2),x(2)^2,x(2)^2;...
0,1,2*x(1),3*x(1)^2;0,1,2*x(2),3*x(2)^2 ];
b=[y(1);y(2);dy(1);dy(2)];
n=length(b);
for i=1:1:n-1
for u=i+1:1:n % Partial Pivoting
if (abs(a(u,i))>abs(a(i,i)))
for v=1:1:n
temp=a(i,v);
a(i,v)=a(u,v);
a(u,v)=temp;
end
temp=b(i);
b(i)=b(u);
b(u)=temp;
end
end
end
for i=1:1:n-1
for k=i+1:1:n
factor=a(k,i)/a(i,i);
for j=1:1:n
a(k,j)=a(k,j)-factor*a(i,j);
end
b(k)=b(k)-factor*b(i);
end
end
for i=n:-1:1
s=0;
for j=i+1:1:n
s=s+a(i,j)*x1(j);
end
x1(i)=(b(i)-s)/a(i,i);
end
fprintf('The required Interpolating polynomial is- ');
fprintf('y=%.2f+%.2fX+%.2fX^2+%.2fX^3',x1(1),x1(2),x1(3),x1(4));
yp=x1(1)+x1(2)*xp+x1(3)*xp^2+x1(4)*xp^3;
fprintf(' At x=%f y=%f ',xp,yp);

***********************************************************************

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote