circshift code generation fails
1 次查看(过去 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!