Академический Документы
Профессиональный Документы
Культура Документы
I. OBJECTIVES
To perform basic operations and use arrays in MATLAB such as
1. Perform array operations including addition, subtraction, multiplication, division
and exponentiation.
1gm
2gm
1
560
2
440
Distance
(miles)
Time (hrs)
10.3
8.2
Table 1. Transportation Route Data
Solution:
3gm
3
490
4
530
5
370
9.1
10.1
7.5
1
2
4
R (ohms)
10
2 x 104
V (volts)
120
80
Table 2. Resistance & Voltage Data
Solution:
R = [1e4 2e4
3.5e4 1e5
V = [120 80
110
200
current = V./R
power_dissipation = V.^2./R
4gm
2e5];
350];
3
3.5 x 104
110
4
105
200
5
2 x 105
350
Output:
current =
0.0120
0.0040
0.0031
0.0020
0.0018
power_dissipation =
1.4400 0.3200 0.3457
0.4000
0.6125
4. SPECIAL PRODUCTS. Use MATLAB to compute the dot product of the following
vectors:
U = 6i 8j + 3k
5gm
Process
Hourly Cost
($)
Lathe
10
6
Grinding
12
2
Milling
14
3
Welding
9
4
Table 3. Manufacturing Cost Analysis
Solution:
6gm
5
3
2
0
4
1
5
3
Output:
Process_cost =
60 24 42
36
7gm
Product2_hours = [5 3 2 0];
Path Segment
1
2
3
4
Force (N)
400
550
700
500
Distance (m)
2
0.5
0.75
1.5
Table 4. Force Data
Use MATLAB to find
(a)
The work done on each segment of the path, and
(b)
The total work done over the entire path.
8gm
5
600
3
Material
1
2
3
4
5
Price ($/ton)
300
550
400
250
500
July
6
4
3
4
3
9gm
10gm
11gm
MATLAB array & matrices
4.
12gm
R 1
18
V1
20Vdc
R 2
R 3
10
16
V2
12Vdc
R 4
6
R 5
R 8
13gm
14
8
V3
R 6
12
40Vdc
R 7
12
14gm