MATLAB QUESTION Thevenin and Norton equivalent sources have

MATLAB QUESTION

?Thevenin and Norton equivalent sources have three parameters, open-circuit voltage, short-circuit current, and resistance, but only two need to be specified and the third is a function of the other two. Write a script that allows the user to enter any two of the three (there are three possibile combinations) and computes and prints the Thevenin (voltage and resistance) and Norton (current and resistance) source parameters. The following is an example of what the script output might look like (this is only an example, feel free to come up with something better)

Show test results for each of the three possible input combinations.

Solution

clc
clear all
a = input(\'select option for data u have 1.Voc & Isc 2.Voc & Rth 3. Isc & Rth\');
if a==1
V=input(\'enter Voc\');
I=input(\'enter Isc\');
Rth=V/I;
disp(\'Thevenins resistance is\');Rth
  
end
if a==2
V=input(\'enter Voc\');
R=input(\'enter Rth\');
I=V/R;
disp(\'short circuit current\');I
end
if a==3
I=input(\'enter Isc\');
R=input(\'enter Rth\');
V=I*R;
disp(\'Open circuit voltage\');Rth
end
if a~=1 || a~=2 || a~=3
disp(\'enter correct option\')
end

MATLAB QUESTION ?Thevenin and Norton equivalent sources have three parameters, open-circuit voltage, short-circuit current, and resistance, but only two need to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site