フィルターのクリア

Matlab Coder refuses to support houghlines.m

5 ビュー (過去 30 日間)
Jakub Grochowski
Jakub Grochowski 2021 年 8 月 5 日
コメント済み: Jakub Grochowski 2021 年 8 月 12 日
Hi, I'm trying to compile a Simulink project with a Matlab function using houghlines.m, but I keep getting the attached error message.
Of course the function runs properly in Matlab, otherwise I wouldn't be posting this question.
The #206.2651.2693 is located in C:\Program Files\MATLAB\R2021a\toolbox\images\images\eml\houghlines.m - I suspect it is a file which helps the Coder convert the real houghlines.m into C code, so as a user I don't even have permission to modify it.
Is there a way to go around this?

回答 (1 件)

Denis Gurchenkov
Denis Gurchenkov 2021 年 8 月 10 日
First, this is a bug. The error is not expected. I referred this to the MathWorks software development team to be fixed in future release.
For a workaround: I suspect that this error message comes up if "Dynamic Memory Allocation in MATLAB Functions" is unchecked in Simulink configuration parameters. Can you please check if that parameter is checked in your model?
If you can attach a simple Simulink model and reproduction steps (does the error happen when you hit play button, or when you do ctrl-B, etc), that would help.
  1 件のコメント
Jakub Grochowski
Jakub Grochowski 2021 年 8 月 12 日
Thank you for your answer, but in fact the function works just fine and the issue was with my code - it's "rather difficult" to find the hough transform for a picture without white pixels - all in all, the error was mine.

サインインしてコメントする。

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by