How can I enter this equation in matlab?

1 回表示 (過去 30 日間)
Hannah Adams
Hannah Adams 2016 年 2 月 21 日
回答済み: Roger Wohlwend 2016 年 2 月 22 日
How do I enter this function into a script file? V is a function of R, and k1, CA0, X, Fa,in and k2 are defined, I just don't know how to tell matlab to evaluate that function with the upper and lower bounds as specified by the brackets. Thanks!

採用された回答

Roger Wohlwend
Roger Wohlwend 2016 年 2 月 22 日
Use a function handle.
f = @(X) (R+1)*F*(-log(1-X)/k1/C + k2*C*X/k1 - k2*C*X^2/2/k1);
V = feval(f, X0) - feval(f, R*X0/(R+1))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by