euniceliu
Newbie level 5

Does anyone have ideas about how to simulate a sample-and-hold circuit using MATLAB code (not simulink)? The model I have is
Vo = Vi + (a0+a1*Vi+a2*Vi^2)*(dVo/dt).
I don't know how to derive the solution of Vo to model it? Thank you in advance.
Vo = Vi + (a0+a1*Vi+a2*Vi^2)*(dVo/dt).
I don't know how to derive the solution of Vo to model it? Thank you in advance.