Generic error by MATLAB Coder

1 回表示 (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2018 年 3 月 2 日
編集済み: MathWorks Support Team 2025 年 3 月 21 日
I am trying to use the MATLAB Coder app to compile a MATLAB function into C code, but I get the following generic error:
ERROR: "Generation of trial code failed"
When I press the view errors button, nothing is showed.
When I use the "codegen" command for just code generation (without any sort of compiling), I get the following error:
??? CODEGEN requires a MATLAB Coder license.
I have a floating network license. How do I resolve this? 

採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 3 月 21 日
編集済み: MathWorks Support Team 2025 年 3 月 21 日
In R2017a and prior, the issue can occur because of the unavailability of a license. However, the MATLAB Coder app is supposed to warn you about the unavailability of the license. This lack of warning is a known bug and has been fixed for R2017b. For now, you can use the following command as a workaround to ascertain that you have the MATLAB Coder license available before proceeding to the Coder app:
>> license('checkout','MATLAB_Coder')
If you observe the generic error in newer releases, use the "codegen" command instead of MATLAB Coder app to get to the bottom of the issue:

その他の回答 (0 件)

カテゴリ

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

タグ

タグが未入力です。

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by