how to call a string into a function
1 回表示 (過去 30 日間)
古いコメントを表示
Ma.Cathyrine Ravina
2019 年 1 月 4 日
コメント済み: Ma.Cathyrine Ravina
2019 年 1 月 4 日
I am currently working on a GUI wherein you can input numbers then it will graph the answer. The function is a differential equation and im using ode45. How am i going to use the inputted number to the function?
For example:
function dxdt=rhs(t,x);
dxdt= 3*exp(-t);
end
I need the 3 there to be a user inputted number.
I will really appreciate it. Thank you so much :)
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!