detectin that codegen has finished
1 次查看(过去 30 天)
显示 更早的评论
Is there a way to detect in matab that codegen has finished. The following code does not work because codegen runs asynchronously and has not finished before the call to myfun_mex
>> codegen myfun % generates myfun_mex.mexw64
>> myfun_mex
0 个评论
回答(1 个)
Kaustubha Govind
2012-7-16
AFAIK, the codegen command is not asynchronous. Perhaps it takes a few seconds for the file system to register the new file? You could try adding a pause(1) command to pause for a second before attempting to run the file (you could experiment with increasing/decreasing the pause time).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Input Specification 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!