Using fzero

1 回表示 (過去 30 日間)
Jeanette
Jeanette 2011 年 5 月 25 日
I keep getting this error when trying to use fzero :
Error using ==> fzero at 181 FUN must be a function, a valid string expression, or an inline function object.
Error in ==> SensorModelRev1 at 119 x=fzero(OptimizeDiff(PfrPfdGuess,Pfr),PfdGuess);
I have defined OptimizeDiff as a function; what I've tried already: -have made it an inline function object; -have defined a symbol for the inline function object;
Not sure what else to do?
  1 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 5 月 25 日
Good job reporting the error message in full, now show us the code!!

サインインしてコメントする。

採用された回答

Sean de Wolski
Sean de Wolski 2011 年 5 月 25 日
doc function_handle
instead of inline.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by