running MATLAB ubuntu, ROS

Running MATLAB from cmm: sudo matlab

dinhnambkhn@dinhnambkhn:~$ cd /usr/local/bin/

dinhnambkhn@dinhnambkhn:~$ /usr/local/bin$ sudo ln -s /usr/local/Polyspace/R2020a/bin/matlab matlab


ROS update in source:

sudo gedit ~/.bashrc

add:

#ROS

source /opt/ros/kinetic/setup.bash

export LD_LIBRARY_PATH=/opt/ros/kinetic/lib

if use CUDA

export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64:/opt/ros/kinetic/lib


  • Solve the error install on Uuntu 20.04

this tip:

https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029

(run the command : xhost +SI:localuser:root)

and after

sudo ./install

worked for me (matlab 21b and ubuntu 20.04)