electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

sample-and-hold circuit simulation using MATLAB code


Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing -> sample-and-hold circuit simulation using MATLAB code
Author Message
euniceliu



Joined: 26 Nov 2008
Posts: 8


Post04 Nov 2009 17:31   

sample-and-hold circuit simulation using MATLAB code


I have no idea how to implement the simulation of a sample-and-hold circuit. The model is as basic as "Vo(t) = Vi(t) + RC*dVo(t)/dt", where C is constant and R is a nonlinear function of Vo(t). If I use a sine wave as the input signal, Vi(t), then how can I get Vo(t)?

Since Vo(t) is also a nonlinear function of Vi(t), I'm considering to let R be the nonlinear function of Vi(t). Assume the nonlinear order is 2, then R approaches to a0+a1*Vi(t)+a2*Vi(t)^2 where a0, a1 and a2 are coefficients. In this case, the derivative of Vo(t) is related with the previous and post samples at sample time t. I'm wondering how to derive the solution to Vo(t).

Any inputs or suggestions are welcome! Thank you very much in advance!
Back to top
Communications_Engineer



Joined: 10 Oct 2008
Posts: 492
Helped: 39


Post05 Nov 2009 8:16   

sample-and-hold circuit simulation using MATLAB code


Why dont you use simulink? It has a block for sample and hold
Back to top
Google
AdSense
Google Adsense




Post05 Nov 2009 8:16   

Ads




Back to top
euniceliu



Joined: 26 Nov 2008
Posts: 8


Post05 Nov 2009 14:26   

Re: sample-and-hold circuit simulation using MATLAB code


I have to use Matlab code or C code, rather than simulink.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Digital Signal Processing -> sample-and-hold circuit simulation using MATLAB code
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
sample-and-hold circuit simulation in MATLAB (4)
S/H circuit - design sample and hold circuit for ADC help (2)
Sample and Hold Circuit (7)
sample and hold circuit (2)
Sample and Hold Circuit. (5)
sample and hold circuit (1)
Stability of sample and hold circuit (2)
sample and hold circuit design (6)
switched capacitor sample and hold circuit (5)
High Speed Sample and Hold Circuit !!! (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS