Anda di halaman 1dari 1

function [l,c,r]=main()

x=input('modle no.');
if (x==1)
x1=input('enter the value of coordinate "x1"');
y1=input('enter the value of coordinate "y1"');
x2=input('enter the value of coordinate "x2"');
y2=input('enter the value of coordinate "y2"');
x3=input('enter the value of coordinate "x3"');
y3=input('enter the value of coordinate "y3"');
h1=input('enter the value of height "h1"');
h2=input('enter the value of height "h2"');
h3=input('enter the value of height "h3"');
v1=0;
v2=0;
v3=0;
elseif(x==2)
x1=input('enter the value of coordinate "x1"');
y1=input('enter the value of y coordinate');
x2=input('enter the value of coordinate "x2"');
y2=y1;
x3=input('enter the value of coordinate "x3"');
y3=y1;
h1=input('enter the value of height "h"');
h2=h1;
h3=h1;
v1=0;
v2=0;
v3=0;
else
x1=input('enter the value of coordinate "x1==x3"');
y1=input('enter the value of coordinate "x2"');
x2=input('enter the value of coordinate "x2"');
y2=input('enter the value of coordinate "y2"');
x3=input('enter the value of coordinate "x3"');
y3=input('enter the value of coordinate "y3"');
h1=input('enter the value of height "h1"');
h2=input('enter the value of height "h2"');
h3=input('enter the value of height "h3"');
v1=input('enter the distance of 1 conductor from sym axis');
v2=input('enter the distance of 2 conductor from sym axis');
v3=input('enter the distance of 3 conductor from sym axis');
end
n=input('input the line no');
[l1,c1,r1]=line_parameter(n,x,x1,y1,x2,y2,x3,y3,h1,h2,h3,v1,v2,v3);
unit={'mili henary' 'micro farad' 'ohm'};
l=[l1 unit(1,1)];
c=[c1 unit(1,2)];
r=[r1 unit(1,3)];

Anda mungkin juga menyukai