Thread Subject: URGENT: matlab 14.4 stuck in initializing state

Discussion in 'Programmer's Corner' started by tianfang, Mar 24, 2010.

  1. tianfang

    Thread Starter New Member

    Mar 24, 2010
    3
    0
    1) OS: centos linux 4.6
    2) license is ok
    3) matlab 14.4 stuck in initializing state
    4) matlab path: /usr/matlab/14.4/

    Once after matlab was exited abnormally, if I re-started matlab GUI, the matlab will be stuck in initializing state and will never get back to normal state. In command window, I can only type command, but no command will be really implemented.

    Is there any suggestion for me to resolve this problem? It's very urgent for us and we are looking forward to your support badly. Many thanks. ^_^
     
  2. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
  3. tianfang

    Thread Starter New Member

    Mar 24, 2010
    3
    0
    the userpath.m is below:

    function p = userpath
    %USERPATH User environment path.
    % USERPATH returns a path string containing the current user environment path
    % (if it exists). On UNIX, the userpath is taken from the MATLABPATH
    % environment variable.

    % Copyright 1984-2002 The MathWorks, Inc.
    % $Revision: 1.9.2.1 $ $Date: 2002/10/09 17:36:47 $

    cname = computer;
    if (strncmp(cname,'PC',2))
    p = getenv('USERPROFILE');
    if ~(isempty(p))
    p = [p '\matlab'];
    if (exist(p,'dir'))
    p(end+1) = ';';
    else
    p = '';
    end
    end

    else % Must be UNIX
    p = [getenv('MATLABPATH') ':'];
    % Remove any redundant toolbox/local
    p = strrep(p,[matlabroot '/toolbox/local'],'');
    p = strrep(p,'::',':');
    end


    Is there any suggestion? Many thanks. ^_^
     
  4. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Have you tried contacting Mathworks for technical support?
     
  5. johndoe45

    Member

    Jan 30, 2010
    364
    1
    he already got problem solved on mathworks.com technical support forum

    just had to rename some directory (preferences i think). and it started up normally
     
    Last edited: Mar 25, 2010
  6. tianfang

    Thread Starter New Member

    Mar 24, 2010
    3
    0
    Oh, yes, The problem is resolved.
    The root cause is that the preference dir (ex. /home/userid/.matlab/R2006b) is corrupted, so when matlab starts, matlab can’t load preference correctly and it will be stuck in initializing state. After renaming /home/userid/.matlab/R2006b to another name and restart matlab to let it create a new preference dir. The matlab can start normally.
    Many thanks to the help from all of you. Thanks. ^_^
     
Loading...