I want to simualte small signal responses of SMPS (Switch Mode Power Supply) in PC. I want to use original circuit of SMPS not linearized small signal model. i want to find Gvd(s) (control to output) or Gvg(s) (input to output) or Zout(s) (Output Imedance) of my circuit by simulation and plot them vs. frequency.
It is better to attach a simple sample code or design file (MATLAB, Altium Designer, OrCAD, PSpice).