Simulation of Switched Reluctance Motor and Control Based on MATLAB Environment\Untitled.m Simulation of Switched Reluctance Motor and Control Based on MATLAB Environment