This code calculates all the transfer functions as well as closed-loop input and output impedances for the buck, boost, and buck-boost converters with the option to include any of the parasitic values in the calculations. Additionally, the readers can enter the A1, B1, C1, D1, A2, B2, C2, D2 matrices for any desired converter into the code and run the code to find all the transfer functions for their converter. Also, using this code the readers can substitute the values of the converter parameters into the symbolic transfer functions in order to find the actual transfer functions in ZPK domain in MATLAB. The transfer functions in ZPK domain can be used directly in MATLAB for stability analysis, controller design and etc.
Reza (2020). Closed-Loop Input and Output Impedance of DC/DC Power Converters (Voltage or Current Mode) (https://www.mathworks.com/matlabcentral/fileexchange/42364-closed-loop-input-and-output-impedance-of-dc-dc-power-converters-voltage-or-current-mode), MATLAB Central File Exchange. Retrieved .
You are right about the parameters.See this paper for more info,
I might be expected to understand the following but it would be nice if it told me for sure:
%Comment any of the parasitic values below to consider that value in the
%transfer function calculations
Is ron RDS(on) of switch?
Is rc ESR of output capacitor?
Is rL DC resistance of the inductor?
I have no idea whats going on in this script and have just begun learning about this stuff, I might be very novice and to some this maybe self-explanatory but not for me anyway.
I hope this will be most useful to me though, many thanks.
Inspired: DC-DC converter small signal modelling