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.
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.