SLIDE 1
CPE0907311 COMPUTER CPE0907311 COMPUTER APPLICATIONS LAB APPLICATIONS LAB EXERC EXERCISE SHEET 4 SE SHEET 4
1 1
UNIVERSITY OF JORDAN UNIVERSITY OF JORDAN CO COMP MPUTER ENGI UTER ENGINEERIN NEERING DEPARTM G DEPARTMENT NT
Prepared by Dr. Iyad Jafar
STUD STUDY THE S Y THE SLIDES O IDES OF EXPERI EXPERIMENT 4 MENT 4 AND SOLV AND SOLVE THE FO E THE FOLLOW LLOWING ING PROB PROBLEMS LEMS BEFORE COMING TO THE LAB. BEFORE COMING TO THE LAB.
1.
- 1. The capacitance of two parallel conductors of length L and radius r, separated by a distance d
is given by
L C = d r ln r πε − ⎛ ⎞ ⎜ ⎟ ⎝ ⎠
where ε is the permittivity of air (ε =8.854x10-12 F/m). Write a script file that accepts user input for C, L, and r, and computes and displays the distance value d that gives in the specified capacitance value C. Test your file with L = 0.5 m, r = 0.01 m, and C = 1 µF. Script File Code The distance d is
2.
- 2. Repeat Problem 1 by writing a Matlab function that accepts the input values C, r, and L in its
argument and returns calculated value d. Your function should be written such that it is capable of processing single and multiple values for C, r, and L, i.e. it should operate on
- vectors. Test your function with the following values C = [2 mF , 0.1 mF], L = [0.2 m 0.1m],