You are on page 1of 4

ESPE – ING. MECATRÓNICA – SISTEMAS DINÁMICOS //Prof.: Ing.

Hernán Lara

Ejercicios de programación en MATLAB1. (2010-11-15)

1. Figure 1 shows an electrical circuit with resistors and voltage sources. Write a MATLAB
program to determine the current in each resistor, using the mesh current method based on
Kirchhoff’s second voltage law. Given V1=37 V, V2 =19 V, V3=25 V, R1=16 Ω, R2=19 Ω,
R3=11 Ω, R4=10 Ω, R5=6 Ω, R6=15 Ω, R7=9 Ω, R8=14 Ω, R9=6 Ω and R10=3 Ω.

Figure 1

2. Figure 2 shows a semiconductor diode and the current flowing through the diode is given by:

where = the voltage across the diode (volt)

= the leakage current of the diode (amp)

k = Boltzmann’s constant (1.38E-23 J/kg)

q = the charge of an electron (1.6E-19 coulombs)

T = temperature (K)

a) Write a MATLAB program to calculate the current flowing through this diode for all
voltages from -0.2 V to +0.25 V in 0.01 steps.
b) Repeat the procedure in (a) for 70ºF, 200ºF and 400ºF.
c) Plot the current as a function of applied voltage.

Figure 2

1Se ha conservado la redacción original en inglés de los problemas planteados a fin de no omitir
algún detalle.
3. Figure 3 shows an RC circuit includes a voltage source , a resistor R=50 Ω and a capacitor
C = 0.001 F. The differential equation that describes the response of the circuit is given by

1 1

where is the voltage of the capacitor. Initially, 0, and then at t=0 the voltage source is
changed. Find the response of the circuit for the following three cases:

a) 12  for 0.
b) 12 sin 2.6πt for 0.
c) 12  for 0 0.01 s and 0  for 0.01 s.

Figure 3

Solve in each case for 0 0.2 s. For each case plot and versus time using a
MATLAB program.

4. Figure 4 shows a container of weight W suspended from ring C to which cable BC of length 6
m and spring AC are attached. Write a MATLAB program to determine the tension in the
cable when W = 150 N. Given: the spring constant as 120 N/m, and its unstreched length as 4
m.

Figure 4

5. Figure 5 shows a uniform quarter-circular member of mass m lying in the vertical plane and
hinged at A and supported against the vertical wall by a small roller at B.

Figure 5

a) Derive expressions for the shear force V, the compressive force C, and the bending
moment M due to the weight of the member.
b) Write a MATLAB program to plot the non-dimensional forces and moment (V/mg,
C/mg and M/mgR) as a function of the section orientation angle α.

6. Figure 6 shows a block of mass m which is at rest on the top of a cylindrical surface. When an
initial velocity is given to the block towards right, it starts to slide on the cylindrical
surface. Write a MATLAB program to plot the variation of velocity of block and α as a
function of time at a friction coefficient µ 0.2. Also find the angle at wich the block leaves
the surface. Assume mass of the block = 0.06 kg and initial velocity of the block, 4 m/s.

Figure 6

7. Two identical slender rods are pin connected as shown in Figure 7 have lengths L= 600
mm. If the system is released from rest when β=60º. Use MATLAB to plot angular velocity of
rod AB and velocity of point D for various values of β ranging from 0º to 60º.

Figure 7

8. In Figure 8, L1=3000 ft, D1=1 ft, ε1=0.001 ft; L2=2000 ft, D2=8 in, ε2=0.0001 ft; L3=4000
ft, D3=16 in, ε3=0.0008 ft; ρ=2 slugs/ft3, υ=0.00003 ft2/s, pA= 80 psi, zA= 100 ft, zB= 80
ft. For a total flow of 12 cfs, determine the flow through each pipe and the pressure at B.

Figure 8

9. A basic dryer can be a duct in which a few layers of electric resistors are placed. A small fan
pulls the air in and forces it through the resistors where it is heated. Air enters a 1200-W
basic dryer at 100 kPa and 22ºC and leaves at 47ºC. The cross-sectional area of the hair dryer
at the exit is 60 cm2. Neglecting the power consumed by the fan and the heat losses through
the walls of the basic dryer, determine
a) The volume flow rate of air in the inlet.
b) The velocity of the air at the exit.
c) Using a program in MATLAB, investigate the effect of the exit cross-sectional area of the
basic dryer on the exit velocity. Let the exit area vary from 25 to 75 cm2. Plot the exit
velocity against the exit cross-sectional. Include the effect of the flow kinetic energy in
the analysis.
Figure 9

10. Develop any engineering problem (free problem).

You might also like