Replacing "dir" when deploying a GUI
Show older comments
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 Comments
Adam
on 26 Jul 2018
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
on 26 Jul 2018
Can you show us an example code of how dir is used?
Edison
on 26 Jul 2018
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!