Simulink error: Function 'makedist' not supported for code generation

11 ビュー (過去 30 日間)
Kayla Papuga
Kayla Papuga 2019 年 8 月 10 日
回答済み: Hari Krishna Ravuri 2019 年 8 月 13 日
How do I make a triangular distribution in my entity generator in Simulink? The error I get is that 'makedist' is not supported

回答 (1 件)

Hari Krishna Ravuri
Hari Krishna Ravuri 2019 年 8 月 13 日
I understand that, you are getting an error that makedist is not supported for code generation. Not all built-in functions are supported for code generation. You may find the list of built in functions for which code generation is supported here. There are two workarounds for this problem.
You may try implementing the built-in function in C/C++ or you may find a C/C++ program with the required functionality. Now, you may call the external C/C++ file using coder.ceval().Please refer this for more information regarding coder.ceval()”.
You may declare the built in function as extrinsic using coder.extrinsic()” function. During simulation, the code generator produces the code for the call to an extrinsic function but does not produce the function’s internal code. Please refer this for more information regarding coder.extrinsic()”.

カテゴリ

Help Center および File ExchangeMATLAB Code Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by