from m-file to mex-file

1 回表示 (過去 30 日間)
dario cecchetti
dario cecchetti 2017 年 11 月 12 日
回答済み: Nicolas Schmit 2017 年 11 月 13 日
Hi everybody, I wrote a scrip called main_zeri, with relatives function. Main_zeri calculates the solutions of the function with the main methods (regula-falsi, newton, bisection and secants). My goal is to convert the code in mex-file, but I have the following error: Error determining type input 'Bisection: f' (for instance f=x^2), Class function_handle is not supported by coder Type. How can I solve this problem?

採用された回答

Nicolas Schmit
Nicolas Schmit 2017 年 11 月 13 日
There are limitation when using function handles with MATLAB coder.
The documentation here should help you to fix the problem.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by