Skip to main content

Matlab启动慢问题

今天在公司的机子上装了个Matlab,安装时没问题,但启动时特别慢,估计有好几分钟才起来。而且界面出来之后,状态栏显示“Initializing...”很长时间。
网上搜了一下,找到了关于启动慢的原因:

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:


"$MATLABROOTinwin32MATLAB.exe" -c "$MATLABROOTinwin32license.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.

Comments

Popular posts from this blog

从理工科博士到金融界Quantitative Analyst

大家好,5月初UM-CSSA职业发展组邀请今年刚毕业的理论物理博士赵智沉师兄,为密大学子带来关于“从理工科博士到金融界Quantitative Analyst”的分享。现将整理好的现场录音文稿发布,供大家阅读。在此,UM-CSSA职业发展组由衷感谢赵师兄的热心支持与精彩分享,欢迎大家关注UM-CSSA及职业发展组未来的活动! 关于主人公: 他是密大高能理论物理博士,曾荣获三项省级物理数学奥赛一等奖,进入北大元培计划实验班深造 却转战于金融界Quantitative Analyst领域,斩获Credit Suisse工作offer,以及Credit Suisse, Barclays Capital和JPMorgan等3个实习offer 他是密大“甄士隐”戏剧工作坊灵魂人物、思想学术沙龙专家、国标舞&桌游发烧友 也被密大中以理工科背景转行金融行业的同学们称为自己的"祖师爷" 他有一个智慧得深沉的名字:赵智沉 赵智沉:从理工科博士到金融界Quantitative Analyst 背景经历 大家好,我的主要工作是为投行的交易做一些模型,然后用编程的方式把这些模型实现出来,给他们交易员,所以有一点像后勤保障这样的工作。我的经历可能对Ph.D更有用一些,因为我的同行都是Ph.D.,都是博士生毕业。本科生一般没有,硕士生也非常少。所以我一会儿讲下我的经历,你们就知道了。 我先自我介绍一下吧,我叫赵智沉,我现在物理系,第五年刚毕业。我是上海人,本科在北京大学元培计划实验班读的,中学是在上海中学。我属于比较典型的走物理竞赛道路的经历,从初中开始,就参加各种物理竞赛补习班,参加竞赛,然后考中学的理科班,也是搞竞赛的班级。唉,要不大家自我介绍一下先?(听众做自我介绍)看来还是Ph.D.比较多,大部分都是研究生。 这边多少人和我一样搞竞赛的?其实竞赛和高考没有太大区别,就是我们走的是不一样的途径。中学参加理科班,理科班也是参加各种竞赛。通过竞赛得奖,保送大学。在北大也是学的物理。我在北大元培实验班,当时在中国是一个比较新鲜的东西,跟美国本科很像。第一年是不选专业的,进去之后就分文理科,什么都可以修,到第二年才选专业。140分的学分可能只需要40分的专业课,其他100分可以自己修想修的课就可以毕业。所以当时这在中国算是一...

10年PostDoc待遇

http://emuch.net/html/201010/2461585.html 1.        全美高校博士后待遇相差不大,博士后第一年一般$35000左右。National lab高一些(约$70000/year),我3年前刚毕业来美时, $35000/year (材料学), 我在西南部消费很低的城市,我师妹今年初去纽约大学 $42000/year. 不知道是不是今年博士后工资涨了,但东部消费高很多,特别是房租。 2.        如果可能,来美时最好先了解一下老板的人品,特别是当老板是华人时,我很多朋友抱怨华人老板push很厉害,很累,有时没有周末,几年都不涨工资,还有的抢学生文章。 3.        J1签证前3年不交税,J2家属可以合法打工,H1签证要交税,家属不可以合法打工,如果拖家带口的,税率会很低,基本不怎么交税了【更正:我认识的H1博后是美国毕业的,他要交联邦税。我查了一下,据说从国内过来的H1前3年也免联邦税, 从国内过来的博后J1和H1的税收区别在于H1刚来就要交社会安全税(7.65%, H1一来即被认为是resident),而J1则在第三年才开始交】。所谓benefit主要是指学校给你全家(包括你,配偶和未成年子女)买健康保险。保险费很高,你只需付其中的很少一部分,学校里会付大部分作为benefit。现在主要谈谈J1的收入和福利。 4.        J1第一年和第二年 (身份non-resident alien)只交健康保险费(每年都在涨,2011年单人$590/月, 自己负责$40/月,直接从工资里扣;2个人$1252/月, 自己负责$119/月; 3人及以上家庭,$1626/月, 自己负责$221/月)。除去健康保险费,剩下的都可以拿到手。 5.        值得一提的是牙医保险和健康保险是分开的,保险费主要由个人负责(学校负责很少一部分)。自己负责的费用是$30.98/m (单人), $70.87/m(2个人), $123.12/m (3人及以上)【更正,这个是贵的牙医保险,一般不选这个,还有个比较便宜的牙医保险,只...

徐州一中老师超牛语录

下面的是众多一中学子在毕业后对母校老师经典语句的回忆,以此来纪念那段美好的青葱岁月,也表达一下众校友对母校和老师们的感恩与想念。当中很多话语是用地道的徐州话写的,相信看的懂徐州话的朋友们肯定会开怀一笑。 1、洪成:走下去......心中有个红太阳。 洪成还说:恶劣,我们来捣弄捣弄,我这么捣弄,你懂不??????? 2、数学老师:你作死,明白了没有? 3、物理老师:同学们知道,咱们学校条件不好。(其实我们学校条件好的冒泡!) 4、黄厚朴:“这是一个好题!~”、“一滴管,两滴管~~” 5、魏老师:"蓝蓝的天上白云漂,白云下面马儿跑,马儿来到我跟前,喂他一把草."(老魏特喜欢作打油诗,汗!)全班暴笑。他还有一句著名的口头语:"怪菜!"  6、刘广琴:1,你得改!!!         2,我们彼此之间的信任已经缺失了~~         3,你就是 差!!! 7、洪成:如此恶劣~~~         我说这你懂不~~~         神奇的"1"         FOLLOW我的步伐~         憨算~ 8、勤俭说,今天我们在光天化日之下召开这次毕业典礼! 9、李玲:什么是美?我站在这里就是美。 10、地理老师魏全星,虽然没教过我,但是他的口头禅太经典了:“你真菜!”后来觉得枯燥又进化成了“you are vegetable!”汗~  11、周宁生老师:你就得死(徐州话)...... 12、刘广勤:那同学就要问咯,这是怎么回事呢?  :这是什么颜色的白烟?  :这是一把铁制的钢刀 13、魏全星:真菜 !  :也菜(野菜)!!  :更菜!!! 14、吴启明:俗!一张口就是钱,真俗!  15、陈洪仁:我这么丑都能,何况你们————   16、帕克:事实上,数学是最精准的科...