MATLAB (already have the answer) UPVOTE WILL BE GIVEN. PLEASE SEE THE ATTACHED PHOTO FOR THE QUESTION AND SOLUTION. WHAT YOU WILL DO IS TO INPUT THE SCRIPT IN MATLAB. PLEASE TAKE A SCREENSHOT OF THE SCRIPT AND COMMAND WINDOW.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

MATLAB (already have the answer)

UPVOTE WILL BE GIVEN. PLEASE SEE THE ATTACHED PHOTO FOR THE QUESTION AND SOLUTION. WHAT YOU WILL DO IS TO INPUT THE SCRIPT IN MATLAB. PLEASE TAKE A SCREENSHOT OF THE SCRIPT AND COMMAND WINDOW. 

37. The electrical circuit shown consists of
resistors and voltage sources. Determine
11, 12, 13 and 14, using the mesh current
method based on Kirchhoff's voltage
law (see Sample Problem 3-4).
V₁=28 V₁ V₂ = 36 V, V3 = 42 V,
R₁ = 162
R₂ = 1022
R₂ = 62
R₁ = 122,
R₂ = 822
R6=1492
R₁=422 Rg=522.
Solution
V
R₁
@@@
R₂₁
R6
www
i4
V₁+|-
R₂
www
-V₂-R5i3-R7(i3-14) - R4(i3-i2) = 0
V₁-R₁i₁-R3(₁-1₂) = 0
-R₂i2-R4(12-13) — R6(1₂−14) — R3(1₂−1₁) = 0
V3-R6(14-12) - R7(14−13) -R8i4=0
The four equations can be rewritten in matrix form [A][x] = [B]:
13
R₂
www
WWRs
-(R₁ + R₂)
R3
0
0
Script file:
clear, clc
V1=28; V2=36; V3=42;
R1=16; R2=10; R3=6; R4=12;
R5=8; R6=14; R7=4; R8=5;
A=[-(R1+R3) R3 0 0
R₂
-(R₂ + R3+R4+R6)
R4
R6
R3 (R2+R3+R4+R6) R40
0 R4 (R4+R5+R7) R7
0 R6 R7 (R6+R7+R8)];
B= [-V1; 0; V2; -V3];
I=A\B
I =
Command Window:
>>
1.2136
-0.2168
-1.3656
1.4566
0
R₁
-(R₁ + R₂ + R₂)
R₁
0
R6
¹2
R₂
-(R6 + R7+ Rg) 14
0
V₂
-V3
Transcribed Image Text:37. The electrical circuit shown consists of resistors and voltage sources. Determine 11, 12, 13 and 14, using the mesh current method based on Kirchhoff's voltage law (see Sample Problem 3-4). V₁=28 V₁ V₂ = 36 V, V3 = 42 V, R₁ = 162 R₂ = 1022 R₂ = 62 R₁ = 122, R₂ = 822 R6=1492 R₁=422 Rg=522. Solution V R₁ @@@ R₂₁ R6 www i4 V₁+|- R₂ www -V₂-R5i3-R7(i3-14) - R4(i3-i2) = 0 V₁-R₁i₁-R3(₁-1₂) = 0 -R₂i2-R4(12-13) — R6(1₂−14) — R3(1₂−1₁) = 0 V3-R6(14-12) - R7(14−13) -R8i4=0 The four equations can be rewritten in matrix form [A][x] = [B]: 13 R₂ www WWRs -(R₁ + R₂) R3 0 0 Script file: clear, clc V1=28; V2=36; V3=42; R1=16; R2=10; R3=6; R4=12; R5=8; R6=14; R7=4; R8=5; A=[-(R1+R3) R3 0 0 R₂ -(R₂ + R3+R4+R6) R4 R6 R3 (R2+R3+R4+R6) R40 0 R4 (R4+R5+R7) R7 0 R6 R7 (R6+R7+R8)]; B= [-V1; 0; V2; -V3]; I=A\B I = Command Window: >> 1.2136 -0.2168 -1.3656 1.4566 0 R₁ -(R₁ + R₂ + R₂) R₁ 0 R6 ¹2 R₂ -(R6 + R7+ Rg) 14 0 V₂ -V3
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY