Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Solve the following problems using MATLAB and write a report that has the codes

ID: 2320139 • Letter: S

Question

Solve the following problems using MATLAB and write a report that has the codes and the contents of your workspace and upload them on blackboard Write a function that combines two parallel resistors and returns the combined value Restate the problem and paste the script into your final report Write a function that combines two series capacitors and returns the combined value Restate the problem and Paste the script into your final report Evaluate the combined Resistance (Req) in the following circuit using the function you defined in(1a, 1b) R1 = last two digit of your ID x 1 R2 = last two digit of your ID x 2 R3 = last two digit of your ID x 5 R4 = last two digit of your ID x 1 R5 = last two digit of your ID x 2 R6= last two digit of your ID x 2 R7 = R8 = R9 = last two digit of your ID/3 If you don't want to see the answer twice you need to add a semicolon Restate the problem include the command calls (workspace) and the final Resistance value Evaluate the combined Capacitance (Ceq) in the following circuit using the function you defined in (1a, 1b) C1 = last two digit of your ID x 1 C2 = last two digit of your ID x 2 C3 = last two digit of your ID x 2 C4 = last two digit of your ID C5 = last two digit of your ID x 3 If you don't want to see the answer twice you need to add a semicolon Restate the problem include the command calls (workspace) and the final Capacitance value

Explanation / Answer

(a)

function [z]= parallel( x,y )
z=(x*y)/(x+y);
end

(b)

function [s]= series( x,y )
s=x+y;
end

(c)

clear all
close all
clc
x=input('Enter last two digit of your ID : ');
R1=x*1;
R2=x*2;
R3=x*5;
R4=x*1;
R5=x*2;
R6=x*2;
R7=x/3;
R8=x/3;
R9=x/3;

Req1= series( R8,R9 );
Req2= series( Req1,R7 );
Req3=parallel( Req2,R6 );
Req4= series( Req3,R5 );
Req5= series( Req4,R4 );
Req6=parallel( Req5,R3 );
Req7= series( Req6,R2 );
Req= series( Req7,R1 )

Output:

Enter last two digit of your ID : 3

Req =

15.3462

>>

(d)

clear all
close all
clc
x=input('Enter last two digit of your ID : ');

C1=x*1;
C2=x*2;
C3=x*2;
C4=x;
C5=x*3;

Ceq1= parallel(C2,C3);

Ceq2= series(Ceq1,C4);
Ceq3=parallel(Ceq2,C5);
Ceq=parallel(Ceq3,C1)

OutPut:

Enter last two digit of your ID : 3

Ceq =

1.6364

>>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote