Professional Documents
Culture Documents
CHE555 Procedure Lab 4
CHE555 Procedure Lab 4
Define X and Y
Use command plot (x,y)
Then, label the graph and x,y axis
Save and Run
27.6
10
31
20
34
30
37
40
40
50
42.6
60
45.5
70
48.3
80
51.1
90
54
100
56.7
In m-file:
Page 1
Page 2
(c) Click Insert Scatter Scatter with smooth lines and markers
(d) Design Chart layouts Click Layout 1 Edit title and axis title
Page 3
Resistance
50
40
30
20
10
0
0
20
40
60
80
100
120
Temperature
Define X and Y.
Use plot command.
Then, label the graph and x,y axis.
Use polyfit command to get the best fit for the data.
Use polyval command to plot the smooth graph based on the equation.
Save and Run
Example:
In m-file:
Page 4
In Command window:
Page 5
Resistance
50
40
y = 0.2881x + 28.123
R = 0.9994
30
20
10
0
0
20
40
60
80
100
120
Temperature
Page 6
ve v
v
0.1
0.2
0.4
0.6
0.9
1.3
1.5
1.7
1.8
0.75
1.25
1.45
1.25
0.85
0.55
0.35
0.28
0.18
Page 7
i. Sum of sum of (prediction value - value from data)2 set as Set Objective
with value of 0
ii. Then, initial guess (e.g. and ) set as Changing Variable Cells
iii. Click Solve
(d) Get the answer as:
Page 8