Symbolic differential equation using dsolve. one of the constraints at t=infinity. i.e. y(t) @ t=Inf = a constant. (or y(Inf) == k) How do I do this?
Show older comments
Question says it all. I can put constraints in at t(0) or specific times, but need one at infinity.
Answers (1)
Torsten
on 13 Nov 2015
0 votes
Set the condition at t=R. In the solution to this problem, let R approach infinity.
Best wishes
Torsten.
1 Comment
Shawn Cary
on 13 Nov 2015
This does not seem to work, this is what I have tried: syms v(t) c r R E x >> R=limit(x,Inf); >> dsolve(diff(v)+v/(c*r)==E/(c*r),v(0)=0,v®=E) dsolve(diff(v)+v/(c*r)==E/(c*r),v(0)=0,v®=E) | Error: The expression to the left of the equals sign is not a valid target for an assignment. or
>> dsolve(diff(v)+v/(c*r)==E/(c*r),v(0)=0,v(Inf)=E) dsolve(diff(v)+v/(c*r)==E/(c*r),v(0)=0,v(Inf)=E) | Error: The expression to the left of the equals sign is not a valid target for an assignment.
The "Inf" seems to make dsolve choke as a constraint
Categories
Find more on Numerical Integration and Differential Equations 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!