Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
veroz

Junior Member
Registered:
Posts: 4
Reply with quote  #1 
Hello,

I am using the Monkeylogic NIMH Toolbox from May 19 2016 on MATLAB 2013b running on Windows 7. The program was running fine until the computer shut down unexpectedly. As I tried to start the Monkeylogic right after, it asked me to provide the experiment directory and then the following error message was displayed:

Error using load
Unable to read MAT-file C:\Users\Vero\AppData\Roaming\MathWorks\MATLAB\R2013b\matlabprefs.mat

File may be corrupt.

Error in prefutils>loadPrefs (line 43)
fileContents = load(prefFile);

Error in prefutils (line 11)
[varargout{1:nargout}] = feval(varargin{:});

Error in setpref (line 37)
Preferences = prefutils('loadPrefs');

Error in set_ml_directories (line 27)
setpref('MonkeyLogic', 'Directories', MLPrefs.Directories);

Error in log4m.getLogger (line 60)
if (set_ml_directories == 1)

Error in mlvideo (line 51)
logger = log4m.getLogger('monkeylogic.log');

Error in mlflush (line 4)
mlvideo('flush');

Error in monkeylogic (line 36)
mlflush;


Can you please help me figure out how to resolve this issue?

Thank you
0
Jaewon

Administrator
Registered:
Posts: 424
Reply with quote  #2 
I think you should use NIMH ML2, but, if you just want to fix that problem, type the following on the MATLAB command window and restart ML.

rmpref('MonkeyLogic')
0
veroz

Junior Member
Registered:
Posts: 4
Reply with quote  #3 
Hi Jaewon,

Thank you for helping me out. Unfortunately, the error still persists (see below). I would like to continue working with the same version of the program, if it is possible. But if everything fails, I will switch to ML2. 

Do you think there may be an additional solution to this issue? Many thanks for your help.

____

Error using load
Unable to read MAT-file C:\Users\Vero\AppData\Roaming\MathWorks\MATLAB\R2013b\matlabprefs.mat

File may be corrupt.

Error in prefutils>loadPrefs (line 43)
fileContents = load(prefFile);

Error in prefutils (line 11)
[varargout{1:nargout}] = feval(varargin{:});

Error in setpref (line 37)
Preferences = prefutils('loadPrefs');

Error in set_ml_directories (line 27)
setpref('MonkeyLogic', 'Directories', MLPrefs.Directories);

Error in log4m.getLogger (line 60)
if (set_ml_directories == 1)

Error in mlvideo (line 51)
logger = log4m.getLogger('monkeylogic.log');

Error in mlflush (line 4)
mlvideo('flush');

Error in monkeylogic (line 36)
mlflush;

0
Jaewon

Administrator
Registered:
Posts: 424
Reply with quote  #4 
Maybe your preference file is broken beyond repair. Try deleting the file (C:\Users\Vero\AppData\Roaming\MathWorks\MATLAB\R2013b\matlabprefs.mat) and restarting MATLAB and ML.
0
veroz

Junior Member
Registered:
Posts: 4
Reply with quote  #5 
Hi Jaewon,

Your suggestion worked and now MonkeyLogic runs well. Thank you so much for your help. I will be switching to ML2 in the nearest future.


0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.