matlab安装及使用

matlab R2015b在ubuntu 14.04环境下的安装

挂载及运行安装程序

sudo mkidr /media/matlab
mount -o loop matlab_R2015b.iso /media/matlab
cd /media/matlab
sudo ./install 
    error1: Activation cannot proceed. You may Set an X11 display, and restart the activation process
    solution:
    sudo -E ./install //use -E to keep env_varies , neverless sudo will clear all the varies of user after installation complete
sudo cp Crack_dir/R2015b/bin/glnxa64/*.so* /usr/local/MATLAB/R2015b/bin/glnxa64/
sudo vim ~/.bashrc
export PATH=/usr/local/MATLAB/R2015b/bin:$PATH
source ~/.bashrc
sudo -E matlab

active program without conect to intenet and choose “ license_standalone.lic” in the crack_dir

error2:cannot open matlab properly, wait for a uncertain time!
描述:添加完环境变量后,matlab命令之后,貌似正在打开matlab软件,因为可以看见正在打开matlab的那个小窗口。但是等了一晚上都没有正常打开。
Solution:

sudo apt-get install matlab-support
rm –rf ~/.matlab/R2015b
sudo chown your_user_name –R ~/.matlab

第三步应该是最有效的,因为On some distributions, launching MATLAB with sudo will create MATLAB preferences in your home folder that are owned by root. You will then not able to launch MATLAB as a standard user as MATLAB will not be able to read it's own preferences.
注意:install matlab-support的时候千万要小心,可能会带来系统莫名奇妙卡死
referred from the following blog
refer1
refer2

VideoReader problem

matlab Error using VideoReader/init (line 619) Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
solution:

sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg

then reboot matlab, it will trick.
Reference:
refer1
refer2

使用非桌面版matlab

matlab -nodesktop	//非图形化界面运行matlab
matlab debug without desktop	//dbstop

refer

posted @   fariver  阅读(1205)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示