-
Notifications
You must be signed in to change notification settings - Fork 0
/
proj1_plots.m
71 lines (66 loc) · 1.3 KB
/
proj1_plots.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
% lambda (percentage AFR actual over AFR stoich)
% fuel_inj (mm3/cyc)
% p_inman (Pa)
% v_veh (km/h)
% n_eng (rpm)
% time (s)
% eng_trq (Nm)
%vehicle speed, engine torque, lambda comparison, engine speed
figure; clf
%vehicle speed
subplot(3,1,1)
plot(base_v_veh)
title('Vehicle Speed')
xlabel('Time (sec)')
ylabel('Speed (km/h)')
hold on
plot(v_veh)
legend('Desired','True')
grid on
xlim([20 27]);
%engine torque
subplot(3,1,2)
plot(base_eng_trq)
title('Engine Torque')
xlabel('Time (sec)')
ylabel('Torque (Nm)')
hold on
plot(eng_trq)
legend('Desired','True')
grid on
xlim([20 27]);
%lambda
subplot(3,1,3)
plot(base_lambda)
title('Lambda')
xlabel('Time (sec)')
ylabel('Percent Ratio')
hold on
plot(lambda)
legend('Desired','True')
grid on
xlim([20 27]);
%intake manifold pressure and fuel injection quantity
figure; clf
%fuel injection
subplot(2,1,1)
plot(base_fuel_inj)
title('Fuel Injection')
xlabel('Time (sec)')
ylabel('Volume (mm3/cyc)')
hold on
plot(fuel_inj)
legend('Base Amount','Cont. Amount')
grid on
xlim([20 27]);
%intake manifold pressure
subplot(2,1,2)
plot(base_p_inman)
title('Intake Manifold Pressure')
xlabel('Time (sec)')
ylabel('Pressure (Pa)')
hold on
plot(p_inman)
legend('Base Pressure','Cont. Pressure')
grid on
xlim([20 27]);