Use MATLAB Thevenin and Norton equivalent sources have three parameters, open-ci
ID: 3850859 • Letter: U
Question
Use MATLAB
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 possible 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) Given open-circuit voltage = 6 V and short-circuit current = 3 A the equivalent sources are Thevenin: V = 6 V in series with R = 2 ohms Norton: I = 3 A in parallel with R = 2 ohms Show test results for each of the three possible input combinations.Explanation / Answer
prompt = 'enter open circuit voltage ';
v = input(prompt);
prompt = 'enter open circuit current ';
i = input(prompt);
r=v/i;
fprintf('thevenin v=%d in series with r=%d ohm ',v,r);
fprintf('norton i=%d in parallel with r=%d ohm ',i,r);
prompt = 'enter resistance ';
r = input(prompt);
prompt = 'enter open circuit current ';
i = input(prompt);
v=i*r;
fprintf('thevenin v=%d in series with r=%d ohm ',v,r);
fprintf('norton i=%d in parallel with r=%d ohm ',i,r);
prompt = 'enter resistance ';
r = input(prompt);
prompt = 'enter open circuit voltage ';
v = input(prompt);
i=v/r;
fprintf('thevenin v=%d in series with r=%d ohm ',v,r);
fprintf('norton i=%d in parallel with r=%d ohm ',i,r);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.