常用方法见文中高亮部分

Matlab随着版本的升级体积越来越大,带来的问题就是启动速度也越来越慢,下面就我注意到的几个影响MATLAB启动速度的问题集中和大家分析下解决办法。

一、preferences方面原因

问题产生原因:

大家都知道,preferences参数很多,如果首选参数设置的不得当,或者文件太大,Matlab启动的时候加载preferences设置就需要较长时间

问题解决方法:

以管理员权限登录,以保证自己有查看隐藏文件的权限。

windows

(1)退出Matlab,一定要确保Matlab不再运行

(2)进入c:Documents and Settings

username>Application DataMathWorksMATLAB

复制代码真实该路径可以在Matlab中键入prefdir得到

(3)将上述路径中,以Matlab版本号为文件名(比如R2009a)的文件夹,重命名为R2009a_old(其实这一步是在备份preferences文件)

(4)重启Matlab,此时predir下会重新创建一个R2009a文件夹,里面包含了所有的preferences设置,只是属性值都是默认的,当然以前对Matlab的设置全部没有了

(5)如果觉得不满意,那么将新生成的R2009a删除,将R2009a_old重新改为R2009a就可以恢复以前的设置了。

二、License方面原因

问题产生原因:

每次Matlab启动的时候会自动搜索Matlab的License文件,而计算机系统变量LM_LICENSE_FILE,则是用来告诉所有的应用程序从哪里找到对应的License文件

另外系统变量LM_LICENSE_FILE也可能导致初始化很慢,但是该变量只对Matlab负责,LM_LICENSE_FILE是对所有的程序负责

但是假如你的Matlab使用的是网络版的License,你计算机没有联网就会导致无法找到network

license

解决方法:

方法一

windows

(1)右击【我的电脑】选择【属性】

(2)在【高级】选项卡中,点击【环境变量】

(3)在下面的【系统变量】找到【LM_LICENSE_FILE】,如果没有,点击【新建】创建一个变量名为LM_LICENSE_FILE的变量

(4)将LM_LICENSE_FILE的属性值设置为Maltab的License文件的绝对路径

(5)重启Matlab

方法二

如果你只有一个License,那么你可以当Matlab启动的时候,在Maltab快捷方式或者命令行中指定License路径

windows

(1)右击Matlab快捷方式,选择【属性】

(2)在【目标】中,键入如下内容”$MATLABbinwin32MATLAB.exe” -c

file name>”

复制代码其中$MATLAB是Matlab安装根目录,可以在Matlab中键入matlabroot得到,

to the MATLAB license file>是License文件的绝对路径

(3)重启Matlab

附英文:

Subject:

Why does MATLAB get stuck in the 'Initializing' state or take

a long time to start on a Windows machine?

Problem Description:

MATLAB opens but the status states 'Initializing' for a long

time. MATLAB takes a long time to launch with or without a remote

license manager.

Solution:

==============

Licensing issues:

==============

If MATLAB starts, but remains in the "Initializing" state,

MATLAB may be unable to find the licenses on your system. This may

be caused by an improperly set environment variable named

LM_LICENSE_FILE. This variable tells MATLAB and other flexlm

applications where to find the license file. If this variable is

set improperly, MATLAB may search for a license for extended

periods of time. Also if you become disconnected from the network

and you access a network license for toolboxes, MATLAB will hang if

this variable is not set correctly.

This slow startup can also happen if you have a standalone

license for MATLAB, but have the LM_LICENSE_FILE variable set for a

different FLEXlm application.

NOTE: There may also be an MLM_LICENSE_FILE variable. This

variable works only for MATLAB, but MATLAB will still read

LM_LICENSE_FILE if it is set before it reads MLM_LICENSE_FILE. If

you have an MLM_LICENSE_FILE variable, you may get better

performance by switching to LM_LICENSE_FILE

In either case, to fix this problem please do the

following:

1) Right-click on the "My Computer" icon and go to

"Properties". (You may also do this by going to the Control Panel

and double clicking "System."

2) Go to the "Advanced" tab and click on "Environment

Variables"

3) Under the bottom window, System variables, look for a

variable named LM_LICENSE_FILE

4) If there is an LM_LICENSE_FILE variable already set, skip

to step 5. If there is not, create an LM_LICENSE_FILE variable by

clicking "New" and typing "LM_LICENSE_FILE" in the Variable name

box.

5) Set the LM_LICENSE_FILE variable to the absolute path of

the MATLAB license.dat file for your standalone license first. The

license file should be in the $MATLAB/bin/win32 directory, where

$MATLAB is the root MATLAB directory. If there is more than one

license file, put a semi-colon (;) after the first path, then type

the path to the next license file. Click "OK" to save.

6) Launch MATLAB again.

Option 2

========

Alternatively, if you use only one license to access MATLAB

and toolboxes, you can specify the license file in the MATLAB

shortcut. To do so, follow these steps:

1) Right-click on a shortcut to MATLAB and select

"Properties"

2) In the "Target" field, enter the following:

"$MATLABROOTbinwin32MATLAB.exe" -c

"$MATLABROOTbinwin32license.dat"

(where $MATLABROOT is the root MATLAB directory)

3) Click "OK".

4) Launch MATLAB from the shortcut.

=================

Non-licensing issues:

=================

(Make sure you have enabled viewing of hidden files and

folders first)

1. Browse to the folder c:Documents and Settings

Application

Data

2. Remove the directory named "MathWorks"

3. Once this has been removed, restart MATLAB. This directory

will be recreated the next time you start MATLAB.

If that does not resolve the issue, there is a known issue

with MATLAB 7.0 (R14) and the graphics libraries supplied with

certain graphics cards, which do not use memory efficiently, and

cause MATLAB 7.0 (R14) to use virtual memory more frequently than

would be expected. In this case, disabling the hardware graphics

acceleration features of the card may improve the performance of

MATLAB 7.0 (R14). To do so, follow the steps below.

1) Close MATLAB.

2) Right-click on the Windows desktop, and select

"Properties".

3) In the Display Properties window that opens, select the

"Settings" tab, and then click on the "Advanced" button.

4) In the window which opens, select the "Troubleshoot"

tab.

5) Set the "Hardware acceleration" slider all the way to the

left, to "None".

6) Click "OK" in this window, and then click OK again in the

Display Properties window.

7) Restart MATLAB.

Solution 2:

============

In some instances, customers have reported that the anti-virus

application on their machine, which was working in the background,

was slowing down MATLAB. For these customers, disabling the active

scan option for at least the MATLAB directories improved

performance substantially.

matlab2014启动很慢,[转载]matlab启动慢的解决方法相关推荐

  1. matlab第一次启动特别慢,[转载]Matlab启动初始化很慢的解决办法

    首先介绍一下我自己使用的有效方法,一般matlab启动初始化很慢主要的原因是在找注册文件,一般是由于安装了MAC类的软件引起的,所以我按照下文提供的方法"在[目标]中,键入如下内容" ...

  2. oracle 开机变慢,项目最近突然启动很慢,平均启动3分钟,求助

    项目最近突然启动很慢,平均启动3分钟,求助 提问 未结 3  940 口袋叔叔丶 2019-07-30 悬赏:20积分 版本:renren-security 开发环境: [pre] 2019-07- ...

  3. linux系统无法启动提示give root password for maintenance的解决方法

    linux系统无法启动提示give root password for maintenance的解决方法 由于非法重启或硬盘故障,会导致linux系统无法启动,无法进入操作系统.当你看到提示:give ...

  4. net start mysql启动mysql,提示发生系统错误5拒绝访问解决方法

    net start mysql启动mysql,提示发生系统错误5拒绝访问解决方法 为什么会出现这个问题呢?经过一番思考找到原因了,是因为当前用户的操作权限太低了,出了问题 出错问题截屏如下: 解决问题 ...

  5. net start mysql启动mysql,提示发生系统错误 5 拒绝访问 解决方法

    net start mysql启动mysql,提示发生系统错误 5 拒绝访问 解决方法 参考文章: (1)net start mysql启动mysql,提示发生系统错误 5 拒绝访问 解决方法 (2) ...

  6. eclipse启动报JVM terminated. Exit code=-1的解决方法

    eclipse启动报JVM terminated. Exit code=-1的解决方法 参考文章: (1)eclipse启动报JVM terminated. Exit code=-1的解决方法 (2) ...

  7. idea 2019安装完(打不开启动不了)问题解决(最全解决方法)

    idea 2019安装完(打不开&&启动不了)问题解决(最全解决方法) 参考文章: (1)idea 2019安装完(打不开&&启动不了)问题解决(最全解决方法) (2) ...

  8. mysql出现error 2003_mysql启动时出现ERROR 2003 (HY000)问题的解决方法

    一.问题描述 在启动MYSQL时出现问题:"ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)& ...

  9. Nginx启动成功但页面访问不到的解决方法

    解决Nginx启动成功但页面访问不到的解决方法: 1.首先查看Nginx进程:ps -ef | grep nginx 如图所示,代表Nginx启动成功.(相关阅读推荐:Nginx启动不起来怎么办) 2 ...

最新文章

  1. Linux 准确查找结构体定义位置
  2. eclipse 中配置maven环境
  3. 爬取了京东商城上的部分手机评论数据,仅供学习使用
  4. OpenCASCADE:拓扑 API之3D模型周期性
  5. 停止了IIS服务为什么apache还是启动不了呢?
  6. 最新 springBoot整合shiro(10分钟教程)
  7. 电信服务器维修人员职责,维修人员岗位职责
  8. 15、sql编程基本语法介绍
  9. 匈牙利哦模板 二分匹配 完全匹配问题
  10. Linux Kernel Oops异常分析
  11. 一个软件网络连接异常_你的电脑运转正常吗?这 10 款系统监控软件能告诉你答案...
  12. VIM打造GTK编程环境
  13. 53.Azure中CentOS的Docker里安装运行SQL Server容器
  14. 在玩图像分类和图像分割?来挑战基于 TensorFlow 的图像注解生成!
  15. linux+shell+解压命令,linux shell解压命令
  16. apksigner --> apk签名工具
  17. 面经:中国人民银行金融科技研究院
  18. Linux下简单命令(一)——返回上一级目录、返回指定目录和返回到名称过长的目录
  19. 这俩 AI 项目贼有意思
  20. 【PyTorch】5 姓氏生成RNN实战——使用语言生成名称

热门文章

  1. Access Token机制简单介绍
  2. 联合证券|内外利好共振 今年A股可更乐观一点
  3. java for循环延迟_Java 锁粗化与循环问题
  4. EHIGH恒高:大话UWB技术之TDOA与TOF两种技术方案对比
  5. 百度地图 鼠标绘制工具BUG修复(地图自动平移)
  6. 在 AIX 上实现 iSCSI
  7. 点阵LCD的显示原理
  8. 「掘金专栏」正式发布啦
  9. 杨永智:创业者需具备的六大基因 五大攻略(下)
  10. Android电视清理系统应用,【教程】无需root!卸载小米电视/盒子内置应用竟如此简单...