필터 지우기
필터 지우기

Can manually solve system of ODEs but can't with dsolve

조회 수: 1 (최근 30일)
Wesley Neill
Wesley Neill 2019년 2월 10일
댓글: Walter Roberson 2019년 2월 10일
Good evening,
I'm using MATLAB for the first time and have been trying to apply the dsolve documentation, here.
>> syms y1(t) y2(t)
A = [0 1; -2/(t^2) 2/t];
Y = [y1; y2];
G = [t^4; t^3];
C = Y(2) == [1; 4];
odes = diff(Y) == A*Y + G;
[sol1(t), sol2(t)] = dsolve(odes, C);
I have been able to solve this by hand fairly easily. I just wanted to use it as an opportunity to start learning MATLAB. However, I get the error:
Warning: Unable to find explicit solution.
> In dsolve (line 201)
ans =
[ empty sym ]
I believe I have followed the tutorial in the documentation exactly, only changing it to match a problem in my textbook. Thanks for your help.
  댓글 수: 4
Wesley Neill
Wesley Neill 2019년 2월 10일
Madhan, yes that is correct.
Walter, how am I to know what this function is reasonably capable of and what it is not?
Walter Roberson
Walter Roberson 2019년 2월 10일
What I mean is that if you did a whole bunch of analysis and manipulation you just might be able to force matlab to find a solution, but it might be difficult or a nuisance to do. It might match a well known pattern but not one built in to dsolve.
The limitations of dsolve and the forms handled are not documented . The implementation is at the MuPAD level so to view the code you would need to go in at that level and use the MuPad expose() call and figure out what the code means . I do not recommend that .

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Utilities for the Solver에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by