Matlab Getting Started
Matlab Getting Started
Fig.1 Simulink
Powergui
Start Simulink and select File->New to bring up a new .mdl file.
Fig.3 untitled.mdl
Double click on powergui and change Configure parameters->Simulation type from Continuous to
Descrete.
Double click on AC Current Source, set peak amplitude to 5mA and Frequency to 1kHz (Fig. 7).
Fig.7 AC current source parameter
Change Branch type to C and connect it to AC Current Source (Fig.10 and Fig.11). Similarly, add Resistor
and Inductors to the diagram (Fig. 12 and Fig. 13).
Select SimPowerSystem->Power Electronics, add Diode and Mosfet to the diagram. Set Diode Forward
Voltage to 0.4V and snubber capacitance to inf(Fig.15).Because the MOSFET in the topology is
unidirectional, set Mosfet Internal diode forward voltage to 20V(or even larger as you like) and the
snubber capacitance to inf (Fig.16)
In order to get the plot, a scope should also be connected to the measurements. Click on Simulink-
>Sinks, add Scope to the diagram.
Fig.19 Scope
Connect Scope to the current and voltage measurements.
Fig.21 RMS
Fig.22 Connect RMS to the current and voltage source