Great to hear that you have developed a MATLAB GUI program and want to deploy it to a server! To run your MATLAB GUI program on a server running CentOS, you can follow these steps:
- Install the MATLAB Runtime: As you mentioned, you have already installed the MATLAB Runtime for Linux on your CentOS 7.6 server. Make sure that you have installed the version of the MATLAB Runtime that corresponds to the version of MATLAB that you used to develop your GUI program.
- Copy your GUI program files to the server: Copy all of the files that are required to run your GUI program (including any dependencies) to the server. You can use a tool like scp or rsync to transfer the files.
- Launch the GUI program: You can launch your MATLAB GUI program on the server by running the following command in the terminal:bash
/usr/local/MATLAB/MATLAB_Runtime/v<version>/bin/matlab -nodisplay -r "run('<path-to-your-matlab-gui-file>')"
Replace <version> with the version number of the MATLAB Runtime that you installed, and replace <path-to-your-matlab-gui-file> with the path to the MATLAB GUI file that you want to run.
- Access the GUI program from a remote client: Once the GUI program is running on the server, you can access it from a remote client by connecting to the server using a remote desktop tool like VNC or RDP. Alternatively, you can use a web-based tool like Apache Guacamole to access the GUI program through a web browser.
I hope this helps! Let me know if you have any further questions.