How to plot bode (Vout/Vin) of a circuit model in simulink?
87 次查看(过去 30 天)
显示 更早的评论
I have designed an isolated boost converter in simulink and the model is attached herewith. To design the closed loop controller of the model, I wanted to plot the bode of circuit using 'linearization' option in simulink. To plot the bode, I used the following steps:
- Used a controlled voltage source for the input.
- Added a 'Sum' block to the input voltage block to add an input perturbation.
- Selected the perturbation signal as 'input perturbation' in 'linearization' tab.
- Selected the measured output voltage signal as 'open loop output' in 'linearization' tab.

- Clicked on 'Model Linearizer'
- Clicked on 'Bode' in the pop-up window.
- I got a bode plot

But the obtained bode plot is incorrect and the gain is completly in the negative direction. What step I can change to obtain the correct bode plot? Also how can I generate the corresponding transfer function?
8 个评论
Paul
2025-8-14,12:01
Hi Peter,
What did you do differently to generate the correct plot as compared to the original plot in the original question?
回答(1 个)
S@m
2025-8-6,10:58
编辑:S@m
2025-8-6,11:05
Hi Peter,
The 'Model Linearizer' in the Simulink linearizes the system about an operating point. By default, the initial condition at t = 0 sec is considered as the operating point. When designing the closed loop controller, the model must be linearized about a suitable operating point such as the desired steady state at t = 0.01 sec in this case (check the output response in the scope for steady state - shown in the below figure).

To set the operating point at the steady state, proceed with the below steps.
Step 1: Click on the ‘Operating Point’ drop down menu and select ‘Linearize At…’ option.

Step 2: Enter Simulation snapshot time as 0.01 s and apply. This would pick the state at simulation time 0.01s and set it as the operating point.

Step 3: Click on Bode to generate the bode plot for the linearized model. Observe that the bode plot in below figure now has positive gain over certain frequency range. For transfer function, right click on ‘linsys1’ in Linear Analysis Workspace and choose ‘Open selection’ option.

Step 4: A window as shown below would open up. Select ‘Transfer Function’ in ‘Display linearization result as’ drop down menu.

For more details on setting operating point in Model Linearizer, refer to the examples in the below link:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linearization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!