how can I use parameter instead of equation in dsolve
古いコメントを表示
Hi
I want to solve an ordinary differential symbolic equation with dsolve. But I want to save my equation in a parameter and use this parameter in dsolve. My codes are coming below:
clear all
syms a x
l=a*x;
dsolve('Dx=l')
these codes don't work. What should I do?
Thanks a lot
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 4 月 27 日
dsolve( subs(sym('Dx=l')) )
4 件のコメント
Andrei Bobrov
2012 年 4 月 27 日
Hi Walter!
This is for MATLAB R2012a only?
Walter Roberson
2012 年 4 月 27 日
Shouldn't be. It is just using a straight-forwards subs().
frank
2012 年 4 月 28 日
Luan Trinh
2014 年 11 月 26 日
Hi everyone,
I want to know how to solve some ODEs like this: clear all; syms a x; l=a*x; dsolve(['D2x*' char(l)+ 'Dx*x' == 0])
Could you help me?
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!