i used this m-file for with IM m-code but executing a m-code takes more time compare to simulink model on my pc..
try to use below simulink model , it has same algorithm..
http://www.mathworks.com/matlabcentral/fileexchange/46135-mathematical-model-of-three-phase-induction-motor-with-space-vector-modulation
if you want to use this code with IM m-code you can do.. you can use machine code below..
http://www.mathworks.com/matlabcentral/fileexchange/46046-im/content/IM_m_code.m

@peppa you are giving input from controller which is generally synchronous frame quantity (Vds and Vqs), so you convert them to abc quantity, or if you are giving Valpha and Vbeta(stationary frame quantity) then directly you can put at input to SVM.
@peppa In SVM model i added only phase voltage not line to line voltages(Vab), if you want to find pole voltages (VAo)then add a fcn model which implement ..
VAo=sA*Vdc/2;
VBo=sB*Vdc/2;
VCo=sC*Vdc/2;
Where [sA sB sC] are output of summation block used after gatepulse/logical operator from which phase voltages are obtained.

it is good..however..do you know how to implement svpwm for diode clamped 3-level inverter?normally people always used 2-level. no such example for 3-level..the sector and vector identification is quite hard. hoping to get information on this

i used this m-file for with IM m-code but executing a m-code takes more time compare to simulink model on my pc..
try to use below simulink model , it has same algorithm..
http://www.mathworks.com/matlabcentral/fileexchange/46135-mathematical-model-of-three-phase-induction-motor-with-space-vector-modulation
if you want to use this code with IM m-code you can do.. you can use machine code below..
http://www.mathworks.com/matlabcentral/fileexchange/46046-im/content/IM_m_code.m