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

The answer above is NOT correct (1 point) Consider the folloving resistor networ

ID: 3349684 • Letter: T

Question

The answer above is NOT correct (1 point) Consider the folloving resistor network with E-5V and Ry-12 for all j-1,...,2n R3 2n-1 R2n 2n-2 (Click on the image to enlarge) The loop currents i, k-1,... ,n, satisfy the system of equations: 211-12 =-5 in-2+3in-1- in0 Use MATLAB/Octave to find the loop current i14 (positive for clockwise direction) if n = 20. Give your answer correct to at least 4 significant figures. If you do not have access to MATLAB or Octave, you may try to use an online MATLAB/Octave script executor such as compileonline.com. Note that due to the way that MATLAB rounds off numbers in the "rref" command, you may have to solve the system with the format "Alb" to get the correct answer Hint: The MATLAB command "format long e" will change the default display of numbers to 15 digits in scientific notation

Explanation / Answer

Matlab Script:

n=20;
for k = 1:n
if k==1
A(1,:) = [2 -1 zeros(1,n-2)];
elseif k==n
A(k,:) = [zeros(1,n-2) -1 3];
else
A(k,:) = [zeros(1,k-2) -1 3 -1 zeros(1,n-k-1) ];
end
end

b = [-5;zeros(n-1,1)];

i = A;

format long e;

disp(i(14));

output:

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