using solve function and getting 0-by-1

hello i am having this set of 4 differential first order equations : ode1(t) =
diff(x(t), t) == (36552913157447*x(t))/17179869184
diff(x(t), t) == -(3598384661667177*x(t))/2199023255552
diff(x(t), t) == 87500*x(t) + 12000
diff(x(t), t) == -89000*x(t)
now when I type : solver = solve(ode1,t)
i get :
solver =
Empty sym: 0-by-1
what to do ?

답변 (1개)

Torsten
Torsten 2017년 10월 23일

0 개 추천

syms x(t)
eqn = diff(x, t) == (36552913157447*x)/17179869184 ;
sol = dsolve(eqn)
Same for the other differential equations.
Best wishes
Torsten.

댓글 수: 5

tomer polsky
tomer polsky 2017년 10월 23일
ye it worked but i want to get answer for x as vector (4X1)
Torsten
Torsten 2017년 10월 23일
"Solve System of Differential Equations"
under
https://de.mathworks.com/help/symbolic/dsolve.html
should help.
Best wishes
Torsten.
tomer polsky
tomer polsky 2017년 10월 23일
as i said i tried using solve but i get the followin answer : solver =
Empty sym: 0-by-1
Torsten
Torsten 2017년 10월 23일
Look at the example in the link and you'll see how to proceed.
Best wishes
Torsten.
tomer polsky
tomer polsky 2017년 10월 23일
the problem in the link that u send me , is that the equations that i need to solve i get in the command window unlike in the link that u sent me i write the equations in the editor

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

질문:

2017년 10월 23일

댓글:

2017년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by