Startup Problem with 2015b with error "Unable to read file 'matlab.mat'. No such file or directory."

7 views (last 30 days)
Startup Problem with the following error: Warning: Executing startup failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:load:couldNotReadFile
Unable to read file 'matlab.mat'. No such file or directory. > In matlabrc (line 230)

Accepted Answer

Andreas Goser
Andreas Goser on 31 Jan 2016
Can you post the complete error in case it is different to the one below?
Warning: Executing startup failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:load:couldNotReadFile Unable to read file 'matlab.mat': no such file or directory. > In matlabrc at 191
Moreover, another error was shown if I executed "load" comment,
Error using load Unable to read file 'matlab.mat': no such file or directory.
Do you have a sartup.m file somewhere and if yes, what is in it?
  2 Comments
Basil Borun
Basil Borun on 31 Jan 2016
Edited: Stephen23 on 31 Jan 2016
That is the currently repeatable error.
Here is my 'startup.m':
function startup
% Copyright 2015 The MathWorks, Inc.
%
% Parameters that can be set in text file (config.txt)
%
% Nsites
% ResultFile
% SnapshotDir
% CalibrationFile
% DisplayWarnings
% Teams: List of teams separated by a comma
%
fid = fopen('config.txt','r');
if (fid > 0)
data = textscan(fid,'%s%s', 'Delimiter', '=', 'CommentStyle', '#');
data = [data{:}]';
fclose(fid);
data(:,cellfun(@isempty, data(2,:))) = [];
if any(strcmpi(data(1,:),'Teams'))
data(2,strcmpi(data(1,:),'Teams')) = ...
textscan(data{2,strcmpi(data(1,:),'Teams')},'%s','Delimiter',',');
end
else
data = {};
end
% Launch judge
judge_control(data{:})
I'm on Mac running the latest versions of:
OS X El Capitan (10.11.3); XCode (7.2), and Java 8 Update 71 (build 1.8.0_71-b15).

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!