필터 지우기
필터 지우기

ODE45 along with sym function

조회 수: 1 (최근 30일)
Shubham Agrawal
Shubham Agrawal 2019년 2월 23일
답변: Krishna Zanwar 2019년 2월 26일
I have written the following code
clear all
A = sym('a',[1 3]);
b = zeros(1,3,'sym');
BT = zeros(1,1,'sym');
syms k
for i = 1:3
b(i) = A(i) * k;
BT = BT + b(i);
end
l = solve (BT == 1,k);
syms c
c = A.*l;
w = [1 10 100];
This gives me
c =
[ a1/(a1 + a2 + a3), a2/(a1 + a2 + a3), a3/(a1 + a2 + a3)]
Now I want to solve the following coupled differential equations:
Capture.JPG
How can I solve these equations in MATLAB?
Please help.

답변 (1개)

Krishna Zanwar
Krishna Zanwar 2019년 2월 26일
Hey Shubham,
You can find the available functions to solve differential equations in this link:
And the functions to solve a system of differential equations in this link:
Hope this helps.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by