PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

208 Practical MATLAB® Applications for Engineers


2.5 Application Problems


P.2.1 Create conversion tables and graphs for the fi rst 21 integer values (from 0 to 20) for
the following:
a. British thermal units to Joules
b. Joules to foot-pound force
c. Newton to pound-force
d. Inches to centimeter
e. Horsepower to watts
f. Foot to meter
g. Joules to calories
h. Horsepower to foot-pound force per second
i. Kilowatt per hour to Joules
j. Electrons to coulombs


FIGURE 2.108
Plots of i1(t) and i2(t) of Example 2.31.


0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

0.5

1

1.5

2

2.5

3

3.5

time (sec)

i1(t) and i2(t) versus t

currents [i1(t) and i2(t)] in amps

i2(t)

i1(t)
Free download pdf