This paper presents a control strategy for managing voltage and frequency in a microgrid featuring a micro-turbine connected through a matrix converter. It addresses issues related to load variations in islanding mode by employing a novel switching strategy that reduces harmonics and enhances system performance. Simulation results demonstrate the effectiveness of the proposed method in ensuring stability and optimal power sharing among distributed generators.