differential equations with conditions
    6 views (last 30 days)
  
       Show older comments
    
I would like to know how to fix the errors in my code.
syms current(t) 
              eqn = (diff(current,t,2)*L) + (diff(current,t)*R) + (current/C) == 0;
              Dcurrent = diff(current,t);
              cond=[current(0)==0 Dcurrent(0)==8];
              currentSol(t)=dsolve(eqn,cond);
1 Comment
Answers (1)
  Birdman
      
      
 on 23 Nov 2017
        syms current(t) R L C 
eqn = (diff(current,t,2)*L) + (diff(current,t)*R) + (current/C) == 0;
Dcurrent = diff(current,t);
cond=[current(0)==0 Dcurrent(0)==8];
currentSol(t)=dsolve(eqn,cond);
0 Comments
See Also
Categories
				Find more on Calculus in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

