Anyone please help me, i have matlab code want to generate to c code using matlab coder. But i have error 'Code generation does not support variable 'min_path_index' size growth through indexing'.

조회 수: 1 (최근 30일)
My code :
min_path_index(minu_count, :) = [sx sy];
How to fix error 'code generation does not support variable 'min_path_index' size growth through indexing'?
  댓글 수: 2
Sandro Lecci
Sandro Lecci 2018년 5월 18일
Hi,
Are you defining the size of min_path_index before you use it? If not it might be because you did not allocate the memory for this variable and languages as C don't like variables that change size.
Just my guess..
Sandro
Dicki Andrea
Dicki Andrea 2018년 5월 20일
Thanks you Mr. Sandro for your response my questions.
Done, i declare min_path_index with zero (min_path_index = [] )

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by