Hello everyone,
I designed a GUI using MATLAb R2019b, in the GUI there is a button where pushing it executes the command:
run 'trial.m'
I want to share the GUI with other users so I must share the (trial.m) file too with them but I don't want them to be able to read the code inside the m file so I saved it as p-code file and in the GUI i changed the command to
run 'trial.p'
The GUI works fine with me as long as i am running it inside MATLAB, my problem starts after I save the GUI as "standalone desktop application"
I attach the p-code file with the GUI so that when the user installs it, they will have the p-code file
When I run the standalone application, the GUI works except for the button that should run the (p file), the (p file) doesn't work. the error says that the GUI can't analyze the (p file)
So briefly, I made the p file to prevent the user from reading the code but instead I prevented the GUI from reading it too.
Is there a way to make the GUI access the p file?
Thank you
Best Answer