Matlab in linux
downloadly.ir: setup file
zip, mount iso file: open terminal: ./install
enter key, type license.lic file location
include ROS toollist, robotics system tool etc
replace libmwlmgrimpl.so file in /home/bijen/matlab/bin/glnxa64/matlab_startup_plugins/lmgrimpl
to open: /home/bijen/matlab/bin/matlab
create shortcut
sudo nano /usr/share/applications/matlab.desktop
[Desktop Entry]
Type=Application
Name=MATLAB R2022b
Icon=/home/bijen/Downloads/matlabicon.png
Exec=/home/bijen/matlab/bin/matlab -desktop
Comment=Start MATLAB R2022b
Categories=Development;Education;
Terminal=false
sudo apt update
sudo apt install python3.9 python3.9-venv python3.9-dev //for matlab 3.9 reqd
which python3.9
/usr/bin/python3.9 //locate this for setting rosToolboxPreferences
>> ver('ros')
--------------------------------------------------------------------------------------------------------
MATLAB Version: 9.13.0.2049777 (R2022b)
MATLAB License Number: 968398
Operating System: Linux 5.15.0-1079-intel-iotg #85~20.04.1-Ubuntu SMP Thu May 1 09:48:56 UTC 2025 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
>> rosgenmsg('/home/bijen/matlab_cosimulation/custom_message')
Identifying message files in folder '/home/bijen/matlab_cosimulation/custom_message'..Done.
Validating message files in folder '/home/bijen/matlab_cosimulation/custom_message'..Done.
[1/1] Generating MATLAB interfaces for custom message packages... Done.
Running catkin build in folder '/home/bijen/matlab_cosimulation/custom_message/matlab_msg_gen_ros1/glnxa64'.
Build in progress. This may take several minutes...
Build succeeded.build log
To use the custom messages, follow these steps:
1. Add the custom message folder to the MATLAB path by executing:
addpath('/home/bijen/matlab_cosimulation/custom_message/matlab_msg_gen_ros1/glnxa64/install/m')
savepath
2. Refresh all message class definitions, which requires clearing the workspace, by executing:
clear classes
rehash toolboxcache
3. Verify that you can use the custom messages.
Enter "rosmsg list" and ensure that the output contains the generated
custom message types.
Comments
Post a Comment