You are on page 1of 2

LINEAR CONTRO SYSTEM(EE-340)

TASK # 01
a) Find the value of V1,V2 and V3
o V1+V2-V3=0
o 2V1-V2=2
o 3V1+V2+2V3=0
b) Find the value of A and B using solve command.
o 3-4B-A=0
o 10-B-8=0

PART (A)

CODING:-
%Farhan Ahmed
%2015-TE-58
%Section B
clc
close all
clear all
symsv1v2v3;
a=solve('v1+v2-v3=0','2*v1-v2=2','3*v1+v2+2*v3=0',v1,v2,v3);
v1=a.v1
v2=a.v2
v3=a.v3
OUTPUT:-
v1 =6/11
v2 =-10/11
v3 =-4/11

PART (B)

CODING:-
clc
close all
clear all
symsAB;
a=solve('3-4*B-A','10-B-8',A,B);
A=a.A
B=a.B
OUTPUT:-
A =-5
B =2

SUBMITTED BY:FARHAN AHMED(2015-TE-58)

You might also like