In matlabrc at 212

2 ビュー (過去 30 日間)
heeni1023
heeni1023 2023 年 6 月 4 日
回答済み: Rik 2023 年 6 月 5 日
I have error using matlab.
like this
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 212
I made new file named "starup.m".
its location is "C:\Program Files\MATLAB\R2012a\toolbox\local"
its content is :
startup
startupsav
how to solve this prolbem?

採用された回答

Rik
Rik 2023 年 6 月 5 日
In general you should never touch files in the Matlab installation folder.
In this case the solution is simple: you didn't create a finish.m file that saves a mat file. Now you try to read that non-existent mat file, which fails. You should make sure such a mat file exists, preferably using a relative path (e.g. with mfilename('fullpath') ) and compose different parts with the fullfile function.
In other words, you should change the example to what you actually want to happen.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by