How do I solve complex Integro-Differential equations in MATLAB?

2 ビュー (過去 30 日間)
Aditya Sreekumar
Aditya Sreekumar 2018 年 8 月 6 日
編集済み: Dimitris Kalogiros 2018 年 8 月 10 日
I am somewhat new to solving these kinds of equations but I would like to obtain some graphs/solutions using Analytical method preferebly.
  2 件のコメント
David Goodmanson
David Goodmanson 2018 年 8 月 9 日
Hi Aditya,
what variable are you trying to solve this for? Kappa, perhaps?
Aditya Sreekumar
Aditya Sreekumar 2018 年 8 月 9 日
Kappa is a constant and the del is varrying btw. But I just need a code example to plot any little complex intergo-diff equations to clear my basics. You can give any example. :)

サインインしてコメントする。

採用された回答

Dimitris Kalogiros
Dimitris Kalogiros 2018 年 8 月 9 日
編集済み: Dimitris Kalogiros 2018 年 8 月 10 日
Hi Aditya
In order to solve this kind of equations symbolically, you should have Symbolic Math Toolbox.
Provided that, I'm giving you a tutorial piece of code:
clear all;
clc; close all;
% define symbolic variables
syms r n E w k d
syms mySum leftTerm
% left term of equation
leftTerm=(r/E)*(w/k)^2
% define term of summation
f=((-1)^(n+1))*(factorial(3)/factorial(2*n+1))*(d^(2*n-2))*(k^(2*n-2))
%calculate sum
mySum=symsum(f , n, 1, inf);
mySum=rewrite(mySum, 'sin')
% substitute variables other than d
rightHand=subs(mySum , k , 1)
leftHand=subs(leftTerm, [r E w k], [1 2 1 1]);
%plot left and right part of equation
fplot(rightHand, [-10 10]); hold on;
fplot(leftHand, [-10 10]); zoom on; grid on;
% numerical solving
equ= leftHand== rightHand
solNeg=vpasolve(equ, d, [-5 0])
solPos=vpasolve(equ, d, [0 5])
I suggest to run this script within a "Live Script"
At the following picture, you can see the results:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by