Hi,
I have tried to solve a basic buck converter equations "in time domain", using functions (I am quite used to do it in a "discrete" way with fixed step solving). Unfortunately, the odesolve gives some very strange results. Thee current is suposed to go up and down in regular sawtooths going up or down according to the PWM function, but it looks like sometimes the solver skips some transitions, causing the current to jump in stupid ways.
I hoped using the odesolve would give me more resolution in the solution (possibly more than I can plot), but this doesn't help me in trusting the solver. Unless I did something wrong ?
Best regards
Adrien