清晰的
clc
clf ()
Raw_peak =[0 462;2000 462;4000 462;6000 462;
Raw_cont =[0 440;2000 440;4000 440;6000 440;
N = linspace (60 0 16000);
Tq = linspace(0462年,50);
N_p_rpm_X = raw_peak (: 1);
Tq_p_Nm_Y = raw_peak (:, 2);
N_c_rpm_X = raw_cont (: 1);
Tq_c_Nm_Y = raw_cont (:, 2);
kc = 0.1;
ki = 0.0;
千瓦= 1.0 e-5;
C = 500;
effMin = 0.89;
ω= N *π/ 30;
为i = 1:长度(ω)
为j = 1:长度(Tq操作)
撅嘴(i, j) =ω(我)* Tq (j));
普洛斯(i, j) = kc * Tq (j) ^ 2 + ki *ω(i) +千瓦*ω(i) ^ 3 + C;
结束
结束
eff = max (effMin Pout. /(撅嘴+普洛斯))* 100;
eff_trans = eff ';
V = (70, 85, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99];
持有在
[C, h] =轮廓(N, Tq eff_trans, V);
情节(N_p_rpm_X Tq_p_Nm_Y,“b”,“线宽”2);
情节(N_c_rpm_X Tq_c_Nm_Y,“r”,“线宽”2);
clabel (C)
contourTable = getContourLineCoordinates (C);
x2 = table2array (contourTable(1:结束,3));
y2 = table2array (contourTable(1:结束,4));
N_p_rpm_X_new = [N_p_rpm_X 0(大小(N_p_rpm_X, 1),大小(x2, 2)造(N_p_rpm_X 2));0(大小(x2, 1) (N_p_rpm_X, 1),大小(x2, 2)));
Tq_p_Nm_Y_new = [Tq_p_Nm_Y 0(大小(Tq_p_Nm_Y, 1),大小(y2, 2)造(Tq_p_Nm_Y 2));0(大小(y2, 1) (Tq_p_Nm_Y, 1),大小(y2, 2)));
Tq_c_Nm_Y_new = [Tq_c_Nm_Y 0(大小(Tq_c_Nm_Y, 1),大小(y2, 2)造(Tq_c_Nm_Y 2));0(大小(y2, 1) (Tq_c_Nm_Y, 1),大小(y2, 2)));
x_cord_c = N_p_rpm_X_new (abs (Tq_p_Nm_Y_new - y2) < 0.1);
高频= gcf ();
甘氨胆酸公顷= ();
xlim (16500 [0]);
ylim (500 [0]);
网格在;
包含(的电动机转速(rpm)”);
ylabel ('电机扭矩[Nm] &电机效率[%]');
标题(电动机效率的)