How can I solve multivariate differential equations?
이전 댓글 표시
I need to solve an ODE depending on 4 variables (t,x,y,z), with partial derivatives of order 2:
(dt + dz)^2 (f)- laplacian(f)=0
How can I write it on matlab? For instance "D([x y ...],f)" returns undefined function "D"...
댓글 수: 4
John D'Errico
2016년 5월 1일
Well, yes, just making up your own notation/syntax in MATLAB will likely fail to produce working code. This is not an ODE by the way, but a PDE.
There are PDE tools in MATLAB. So you might start reading the help for those tools. Read through some examples. But I'd guess that really you need to start learning MATLAB, at least basic syntax, instead of jumping into the deep end of the pool.
You might also think about reading about numerical methods to solve PDEs. Understanding how to solve a problem can be valuable even when you try to use tools that do the work for you.
David GASPERINI
2016년 5월 2일
Torsten
2016년 5월 2일
Please write out your equation in the usual mathematical notation.
From what you wrote above, I don't even know which equation you are trying to solve.
Best wishes
Torsten.
Vaibhav Awale
2016년 5월 6일
The D that is mentioned in this page should be used in MuPAD and not in MATLAB command window or MATLAB script. As John pointed out, to solve this PDE, PDE toolbox can be helpful, but it is important to understand basic syntax and numerical methods to solve PDEs
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PDE Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!