circshift code generation fails
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to go through the code generation process to make an FDM model as quick as possible for use in another program. To find boundaries and assign boundary conditions, I need to shift a 3D mask in all 3 dimensions. Originally, to do this I used imtranslate. However, code generation is not supported for 3D calls of imtranslate. I switched to circshift, which effectively does the same thing. However, when I run through the code generation process, I get a "Function call failed" error every time I call circshift. MATLAB says it supports circshift for code generation, so I'm clearly missing something.
Since the size of my 3D mask varies, I left all the dimensions unbounded. Could this be the source of the problem? Are there any other methods for simply shifting an array over by one in a dimension that is compatible with code generation?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!