Current Directory for Generated Code
6 次查看(过去 30 天)
显示 更早的评论
pwd Doesn't seem to be supported for code generation. How might one get the current directory when deploying code with code generator?
0 个评论
采纳的回答
Walter Roberson
2022-6-22
编辑:Walter Roberson
2023-10-3
MATLAB Coder is designed to target embedded systems, so functionality that is not part of the C Standard Library is often not available. DSP and so on often have no file system.
If you are targeting MacOS or Linux then coder.ceval to the appropriate system call. Windows uses a different system call.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 DSP Algorithm Acceleration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!