dsolve unable to find symbolic solution to sets of ODE

조회 수: 9 (최근 30일)
RITIKA Jaiswal
RITIKA Jaiswal 2022년 9월 19일
댓글: RITIKA Jaiswal 2022년 9월 19일
Hi all,
I have been trying my hand at matlab recently and encountered an error while attempting to solve an ordinary differential equation. The equation I am trying to solve is in the picture attached.
I am getting like this after running this code
clear all;
clc;
close all;
syms g(x) u(t) x1(t) x2(t) x3(t) x4(t) x5(t) x6(t) x7(t) x8(t) x9(t) x10(t);
g(x)=exp(40*x)+x-1;
A =[-g(x1)-g(x1-x2)+exp(-t); g(x1-x2)-g(x2-x3);g(x2-x3)-g(x3-x4);g(x3-x4)-g(x4-x5);g(x4-x5)-g(x5-x6);g(x5-x6)-g(x6-x7);g(x6-x7)-g(x7-x8);g(x7-x8)-g(x8-x9);g(x8-x9)-g(x9-x10);g(x9-x10)]
ode1 = diff(x1,t)==[-g(x1)-g(x1-x2)];
ode2= diff(x2,t)== g(x1-x2)-g(x2-x3);
ode3= diff(x3,t)== g(x2-x3)-g(x3-x4);
ode4= diff(x4,t)== g(x3-x4)-g(x4-x5);
ode5= diff(x5,t)== g(x4-x5)-g(x5-x6);
ode6= diff(x6,t)== g(x5-x6)-g(x6-x7);
ode7= diff(x7,t)== g(x6-x7)-g(x7-x8);
ode8= diff(x8,t)== g(x7-x8)-g(x8-x9);
ode9= diff(x9,t)== g(x8-x9)-g(x9-x10);
ode10= diff(x10,t)== g(x9-x10);
odes=[ode1;ode2;ode3;ode4;ode5;ode6;ode7;ode8;ode9;ode10]
S = dsolve(odes)
after running the code i am getting like this what should i do?
Warning: Unable to find symbolic solution.
> In dsolve (line 209)
In deexamp (line 18)
S =
[ empty sym ]

채택된 답변

Torsten
Torsten 2022년 9월 19일
The equations are much too difficult and the size of your ODE system is much too large to be solved symbolically.
Use a numerical solver, e.g. ODE15S.
  댓글 수: 1
RITIKA Jaiswal
RITIKA Jaiswal 2022년 9월 19일
yeah that why i m trying till Order =10
Thanks for the help

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by