circshift code generation fails

조회 수: 2 (최근 30일)
Ryan Woodall
Ryan Woodall 2017년 1월 24일
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개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by