how to call a string into a function
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ma.Cathyrine Ravina
am 4 Jan. 2019
Kommentiert: Ma.Cathyrine Ravina
am 4 Jan. 2019
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!