"errors occurred during parsing of MATLAB function"
25 ビュー (過去 30 日間)
古いコメントを表示
"errors occurred during parsing of MATLAB function" THis error i got while using matlab function (user defined function) with anonymous function.
6 件のコメント
採用された回答
Ameer Hamza
2018 年 6 月 12 日
You are getting these errors because MATLAB does not support code generation for all the function. The supported function list is here. Also, there are several restrictions for code generation for function handle. The easiest way to solve this problem is to move all of your code from Simulink function block to a MATLAB function file and save it in MATLAB path. Then define these functions as extrensic as shown on this link: https://www.mathworks.com/help/simulink/ug/calling-matlab-functions.html. Simulink will not try to generate code for the extrensic functions and simulation will run.
4 件のコメント
ERNESTO BENJAMIN PAZ YAÑEZ
2021 年 4 月 6 日
But supouse with need to generate the code any way. How could we know wich function is causing problems?. Do we need to go one by one checking on the list?, or there is a smarter way?
その他の回答 (1 件)
Zahid Khan
2018 年 6 月 12 日
6 件のコメント
Saba
2023 年 3 月 3 日
Hi there, i also have the same problem, but I do not know how to figure it out in order to correct it.
Could you please help me out?
I attached three screenshots in the pdf file.
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!