Solve an eqution in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello! How can I write this equation in matlab: The variable here is t, all other variables including Rt are known.I want to find t by solving D(t)=R(t).
0 Kommentare
Akzeptierte Antwort
Niels
am 9 Jan. 2017
Bearbeitet: Niels
am 9 Jan. 2017
D(t)=R_t
<=> D(t)-R_t=0
tSolution=fzero(D(t)-R_t,0)
but care, the output can be contain more than 1 solution, if D and R have more than 1 intersection point
2 Kommentare
Niels
am 16 Jan. 2017
this means that the function has no roots... maybe plot the function first or check if it has a sign change. Did you enter the right function?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Performance and Memory 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!