Path: news.mathworks.com!not-for-mail
From: "Rens " <john.doe.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Installing 2007A on Vista
Date: Tue, 31 Jul 2007 07:27:18 +0000 (UTC)
Organization: TUE
Lines: 58
Message-ID: <f8mo8m$g0f$1@fred.mathworks.com>
References: <kmog03h70lvnchfhpa965s1lp33pe3hedv@4ax.com> <ef51c94.0@webcrossing.raydaftYaTP> <ef51c94.1@webcrossing.raydaftYaTP> <ef51c94.2@webcrossing.raydaftYaTP> <ef51c94.3@webcrossing.raydaftYaTP> <f8me7r$hn7$1@fred.mathworks.com>
Reply-To: "Rens " <john.doe.nospam@mathworks.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185866838 16399 172.30.248.35 (31 Jul 2007 07:27:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 Jul 2007 07:27:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 649854
Xref: news.mathworks.com comp.soft-sys.matlab:421814


-----------------------------------
Subject:
Why does MATLAB R2007a hang at "Initializing" on Windows?

Summary:
When running MATLAB R2007a, MATLAB states that it is "Initializing"
and never finishes. If I hit the keys CTRL+C, I get the following
error:
%%%BEGIN ERROR%%%
Error in ==> matlabrc at 34
matlabpath(pathdef);
%%%END ERROR%%%
I have some control in the command window at that point.

Solution:
This error is currently under investigation. It appears that MATLAB
is failing to initialize the path correctly.

To resolve this issue, you must specify a direct folder for MATLAB to
start in. To do this, open the file $MATLAB\toolbox\local\userpath.m
(where $MATLAB is the R2007a root folder) with a text editor.
Replace line 13 and 16 that has:

%%%BEGIN CODE%%%
rc p] = dos('startdir $documents\MATLAB -a'); %%%END CODE%%%

with an actual directory such as C:\MATLAB\R2007a\work

%%%BEGIN CODE%%%
rc p] = dos('startdir C:\MATLAB\R2007a\work'); %%%END CODE%%%

Once you save the file and restart MATLAB, it should not hang at the
intialization phase.
-----------------------------------

"Croydon Dias" <twistadias@gmail.com> wrote in message <f8me7r$hn7$1@fred.mathworks.com>...
> How do i read about Solution Number: 1-424AAV
> 
> Could you please tell me the exact steps you took to get the program working
> 
> What did you add to the shortcut
> 
> My current shortcut is as follows
> C:\Users\Croydon\Documents\MATLAB\bin\matlab.bat -sd $documents\MATLAB
> 
> 
> 
> "John Mosher" <mosher@lanl.gov> wrote in message 
> > See Solution Number: 1-424AAV
> > 
> > But my solution is a simpler patch for now. I made a shortcut that
> > simply executes:
> > 
> > restoredefaultpath;
> > matlabrc
> > 
>