爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 14819|回复: 13

[参考资料] (转载)[教程] [原创]MATLAB初始化initializing极慢解决方法

[复制链接]

新浪微博达人勋

发表于 2012-12-3 08:57:58 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 心灵之约 于 2012-12-4 13:30 编辑

此文转载自dynamic的原创帖子,如需转载请出名出处,谢谢。

仅供大家学习交流使用。

MATLAB升级以后,功能的确丰富了好多,有些函数也更加人性话了,好多bug也没有了。但是可恼的是,这个该死的家伙却一天比一天肥,MATLAB7.6a居然达到了3.76G,启动和打开某些窗口,速度明显不行了,真是尾大不掉呀。

下面我们说说,MATLAB初始化initializing极慢解决方法,但是可能导致Matlab启动的初始化很慢原因很多,这里我们只能对常见的集中可能的原因进行分析:


一、License方面原因


问题原因:

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

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

但是假如你的Matlab使用的是网络版的License,你计算机没有联网当然没法找到那个network license

解决方法:

方法一

windows...

游客,如果您要查看本帖隐藏内容请回复



Unix,Linux,or Mac
Check to see if there is an environment variable set. Where this is located depends on the shell you are using. Look in your home folder. This file may be called: .cshrc (c-shell), .profile (bash), or .bashrc (bash)

You can also create an environment variable for that shell session from the command line using export or setenv (depending on your shell), but the above file needs to be edited for a permanent change.

For example:

  1. export MLM_LICENSE_FILE /usr/bin/matlab/license.dat
复制代码

方法二

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

windows

游客,如果您要查看本帖隐藏内容请回复


Unix,Linux,or Mac
Use a -c switch to point directly at the license file when launching.

If the MATLAB installer has created symbolic links, run

  1. matlab -c <Full Path to the MATLAB license file including file name>
复制代码

If symbolic links were not created, run from $MATLAB/bin/

  1. ./matlab -c <Full Path to the MATLAB license file including file name>
复制代码
Where $MATLAB is the root MATLAB directory and <Path to the MATLAB license file> is the absolute path to your license file, likely in your $MATLAB/licenses directory.


二、preferences方面原因


问题原因:

preferences首选参数设置的不得当,或者文件太大,Matlab启动的时候加载preferences设置需要较长时间

解决方法:

游客,如果您要查看本帖隐藏内容请回复



三、其他方面原因


游客,如果您要查看本帖隐藏内容请回复



评分

参与人数 1金钱 +10 贡献 +2 收起 理由
Aires + 10 + 2

查看全部评分

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2012-12-5 10:03:35 | 显示全部楼层
{:eb317:}{:eb317:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2012-12-5 10:39:11 | 显示全部楼层
学习,学习!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2012-12-18 13:02:13 | 显示全部楼层
自己很多时候都懒得设置了,尽管启动慢。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-12-18 13:10:36 | 显示全部楼层
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-12-18 13:11:18 | 显示全部楼层

欢迎多提宝贵意见。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-3-19 18:32:46 | 显示全部楼层
BU CUO BU CUO
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-5-23 00:25:54 | 显示全部楼层
楼主解了我的燃眉之急~~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-5-23 08:03:03 | 显示全部楼层
XIN如止水 发表于 2013-5-23 00:25
楼主解了我的燃眉之急~~

呵呵,客气了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-7-4 17:11:59 | 显示全部楼层
謝謝你,開起來試試看
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表