Why am i getting a convergence problem while having a system with multiple switches?

I have a model which has three switches connected to a capacitor. Only one of the switches are connected at a time. The control signals' timing has been so adjusted that one switch turns on only after the other switch has turned off. I am getting an error (NaN or Inf) exactly at the threshold of the switch. Can someone tell me why this is happening?

Answers (0)

This question is closed.

Asked:

on 17 Jul 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!