MATLAB on chip

MATLAB on chip

How to use MatLab on chip?

  1. Create a slurm allocation using srun

  2. Load the MATLAB module: module load MATLAB/2025b

  3. Move the .MathWorks configuration folder to your research volume

    1. Due to MatLab writing files to your home directory, which causes your home directory quota to fill up. This results in execution issues with MatLab
      Example:

      [user@c24-52 ~]$ matlab -nodisplay An error occurred while extracting product files. Try rerunning the installer. For help, see this <a href="https://www.mathworks.com/pi_ee_mci_glnxa64">support article</a>. An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>. < M A T L A B (R) > Copyright 1984-2025 The MathWorks, Inc. R2025b (25.2.0.2998904) 64-bit (glnxa64) August 21, 2025 An error occurred while extracting product files. Try rerunning the installer. For help, see this <a href="https://www.mathworks.com/pi_ee_mci_glnxa64">support article</a>. An unexpected error has occurred. To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>. To get started, type doc. For product information, visit www.mathworks.com.
    2. Steps to resolve (replace $GROUP and $USER with your group’s name, and your username respectively)
      mv ~/.MathWorks /umbc/rs/$GROUP/users/$USER/.MathWorks
      ln -s /umbc/rs/$GROUP/users/$USER/.MathWorks ~/.MathWorks

  4. Run MatLab
    matlab -nodisplay

  5. Run your MatLab code!

 

Helpful Links

Accessing GUI Applications on Chip Using X11 Forwarding - Steps on utilizing X11 Forwarding for MatLab graphics