Replacing "dir" when deploying a GUI
显示 更早的评论
When turning a GUI into a standalone application i found out that the function "dir" i was using to get the names of the files in a folder, is not working. Using MATLAB Compiler i could add these files to the executable but i don't know how to get their names now i can't use this function, is there a similar one that works in a deployed code?
3 个评论
Adam
2018-7-26
I'm fairly sure I've used dir in a compiled application. I always use it with an argument though rather than just relying on whatever the current folder happens to be. I don't see any restrictions in the Help that suggest it doesn't work in a deployed executable.
OCDER
2018-7-26
Can you show us an example code of how dir is used?
Edison
2018-7-26
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!