Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB QUESTION: I'm taking a class VERY heavy in Matlab. I just need to verify my results and that I've coded this correctly. To solve

MATLAB QUESTION: I'm taking a class VERY heavy in Matlab. I just need to verify my results and that I've coded this correctly.

image text in transcribed

To solve this by band matrix I wrote:

A=[-5 -1 -1 -1 0 0 0 0;-1 5 -1 -1 0 -1 0 0;-1 -1 6 -1 -1 -1 0 0;-1 -1 0 6 -1 -1 0 -1;0 0 -1 -1 5 -1 0 0;0 0 -1 -1 -1 6 -1 0;0 0 0 -1 0 -1 5 -1;0 0 0 0 0 0 -1 3]; B=[20;0;20;0;50;30;30;30]; C=(A^-1)*B;

fprintf('V1 = %3.3f Volts ',C(1,1)) fprintf('V2 = %3.3f Volts ',C(2,1)) fprintf('V3 = %3.3f Volts ',C(3,1)) fprintf('V4 = %3.3f Volts ',C(4,1)) fprintf('V5 = %3.3f Volts ',C(5,1)) fprintf('V6 = %3.3f Volts ',C(6,1)) fprintf('V7 = %3.3f Volts ',C(7,1)) fprintf('V8 = %3.3f Volts ',C(8,1))

Which results in:

V1 = -7.675 Volts V2 = 3.795 Volts V3 = 8.300 Volts V4 = 6.281 Volts V5 = 15.330 Volts V6 = 12.069 Volts V7 = 12.504 Volts V8 = 14.168 Volts

By C 20 V sati pot solu 30 V OV

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions