PMSM-SMC.zipthe battery built in the matlab.can be sucessful simulated in the sinmulik.
PMSM.rarPMSG base on slip mode,can be successfully run in simulink.
electricmachines.rarDesign and implementation of all electrical machines like single and three phase Induction motor, bldc, pmsm, dc motors and their control techniques