"errors occurred during parsing of MATLAB function"

조회 수: 26 (최근 30일)
Zahid Khan
Zahid Khan 2018년 6월 12일
댓글: Saba 2023년 3월 3일
"errors occurred during parsing of MATLAB function" THis error i got while using matlab function (user defined function) with anonymous function.
  댓글 수: 6
Zahid Khan
Zahid Khan 2018년 6월 14일
@Ameer Hamza Its working. I'm so much happy. and thank you very much bro. I spent considerable time but failed. and u did it.
Ameer Hamza
Ameer Hamza 2018년 6월 15일
You are welcome.

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
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
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?
Steven Lord
Steven Lord 2021년 4월 6일
Take a look at this section in the documentation for MATLAB Coder.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Zahid Khan
Zahid Khan 2018년 6월 12일
My errors and matlab function code are given in attached picture.
  댓글 수: 6
Zahid Khan
Zahid Khan 2018년 6월 14일
Sir, great love and respect for you. i tried older code as i installed 2018a. it working.
Saba
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 CenterFile 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!

Translated by