solution of an implicit equation with fzero on MATLAB

主宰稳场 提交于 2019-12-08 19:28:26

You have to pass colebrookfunc as a function handle. Also, unless you define colebrookfunc as a nested function (which you, apparently, don't), you need to somehow pass the parameters to the function.

Thus, your call to fzero should look like:

a = fzero(@(x)colebrookfunc(x,eD,Re),0.1)

And the first line of coolebrookfunc has to be

function F = colebrookfunc(x,eD,Re)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!