系统主图:
stateFlow状态转换图
功能函数:
function [a1,am,f]=VecOut(c,a0,am0)
switch c
case {0,1,2,3}
a1 = 0;am = 0;f= 0;
case {4,5,6,7}
a1 = a0;am = am0;f= 0;
case {8,9,10,11}
a1 = a0+pi;am = am0;f= 0;
otherwise
a1 = 0;am = 0;f= 1;
end
end
三相电流曲线:
dq电流曲线
力矩曲线: