Continuous to discrete conversion of power gui

8 views (last 30 days)
noman zahoor
noman zahoor on 4 Apr 2019
Answered: Harsh on 18 Jun 2025
My simulation is running in conticuous powergui.but i want to change the powergui to discrete (5e-6)

Answers (1)

Harsh
Harsh on 18 Jun 2025
The "powergui" block allows you to choose one of these methods to solve your circuit:
  • Continuous, which uses a variable-step solver from Simulink
  • Discretization of the electrical system for a solution at fixed time steps
  • Continuous or discrete phasor solution
To change the "Simulation type" from "Continuous" to "Discrete" double click on the "powergui" block in your model and click on the drop down button to select "Discrete". After that you can provide the "Sample time" as "5e-6" and click on Apply.
For more information regarding "powergui" block, enter the following line in MATLAB "Command Window" -
doc powergui

Tags

Products


Release

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!