MATLAB: Potential error when compiling a folder path inside a GUI

compilerfolderguipath

Recently i have programmed a functional GUI, but in order to work it needs to change directory and use the information from an specified path folder. Now i need to turn this into an executable using the Compiler. I fear the code will not work since the path directs to a folder within the PC and the executable must run in other computers. Is there a way to include this foreign folder when compiling the GUI?

Best Answer

it has two ways:
1. either compile the .exe with the data in the folder 2. or ask the path input during compilation