1.

The capacitor voltage due to a current of i=t^4with v(0^+)=3 is found from using _________(a) ODE solver(b) int() command(c) quad() command(d) diff() commandThis question was addressed to me at a job interview.The origin of the question is Integration in section Beyond the Basics of MATLAB

Answer»

The correct answer is (a) ODE solver

For explanation: The CASE for the CAPACITOR has an initial CONDITION. So the int() command won’t MERELY give the voltage, as a function of time, for the capacitor. We need to use the ode45 solver or the ode23 solver. The quad command won’t also give the TRUE solution for a voltage since it doesn’t return the complementary function.



Discussion

No Comment Found

Related InterviewSolutions