trying to get general solution for differential equation but keep getting error
이전 댓글 표시
syms dx1 gensoln eq1
eq1='dx1-x2/2+20' ;
gensoln = dsolve(eq1,'t');
댓글 수: 1
James Tursa
2018년 12월 11일
What is the DE you are trying to solve?
답변 (1개)
madhan ravi
2018년 12월 11일
See https://in.mathworks.com/help/symbolic/solve-a-single-differential-equation.html for better understanding and how to declare variables as a function of another , below is an example on how to solve but not sure if that's what you want to do but generall that's how you solve an ode symbollically,...
syms x1(t) x2(t)
dx1=diff(x1);
ode=0==dx1-x2/2+20 ;
gensoln = dsolve(ode);
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!