コンデンサの電圧と電流を計算しています。次に、エネルギーも決定したいと思います。エネルギーは電力の積分ですが、電力関数を統合することはできません:
I_C=exp(-alpha*t).*(x5(1)*cos(omega_d*t)+x5(2)*sin(omega_d*t));
V_C=exp(-alpha*t).*(x6(1)*cos(omega_d*t)+x6(2)*sin(omega_d*t))+V_In;
Pow_C=V_C.*I_C;
Pow_C_Function=@(t)Pow_C;
Energy_C=quad(Pow_C,0,tf)
エラーが表示されます: The integrand function must return a output vector of the same length as the input vector.
誰でも助けることができますか?