使用ode45求解微分方程时,待求解的微分方程含有可变参数该怎么办?。
Ältere Kommentare anzeigen
[T,A] = ode45(@ProbabilityAmplitude,[0,1500/Omegac],[1 0 0]);
ProbabilityAmplitude是在另一个.m文件中写的一个微分方程组,但其中含有一个可变参数n,现在需要主程序中n每改变一
个值,使用ode45求解一次ProbabilityAmplitude方程组(也就是执行一次上面的语句),对大量的n循环,请问有什么方法
可以在主程序中改变n的值,能把n当成一个参数,传递给ProbabilityAmplitude.m?除了用save和load把n储存成一个矩阵文
件,还有什么方法可以在不同的.m文件之间传递参数?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 常微分方程 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!