Error using builtin
Can't find the resource file 'toolbox/matlab/graphics/hg/hgrc.m' needed by 'E:\bin\win64\hg.dll'
Error in matlab.graphics.internal.initialize (line 15)
suppressedOutput = evalc('builtin(''groot'');');
Error in matlab.internal.doc.services.getDocLanguageLocale (line 11)
sysLang = get(0, 'Language');
Error in matlab.internal.doc.csh.HelpTopicMap.accessDocLanguage (line 65)
docLang = matlab.internal.doc.services.getDocLanguageLocale;
Error in matlab.internal.doc.csh.findDocCatalogFiles>findFilesUnderRoot (line 18)
docLang = matlab.internal.doc.csh.HelpTopicMap.accessDocLanguage;
Error in matlab.internal.doc.csh.findDocCatalogFiles (line 2)
files = findFilesUnderRoot(docroot, catalogFolder, shortname);
Error in matlab.internal.doc.csh.HelpTopicMap/retrieveHelpTargets (line 128)
files = matlab.internal.doc.csh.findDocCatalogFiles("cshapi_helptarget", obj.shortname);
Error in matlab.internal.doc.csh.HelpTopicMap/mapSingleTopic (line 97)
retrieveHelpTargets(obj);
Error in matlab.internal.doc.csh.HelpTopicMap/mapTopic (line 27)
helpPath(i) = mapSingleTopic(obj, topicId(i));
Error in matlab.internal.doc.csh.mapTopic (line 5)
helpPath = helpTopicMap.mapTopic(topicId);
Error in matlab.internal.language.introspective.getExtendedErrorCallback (line 6)
path = matlab.internal.doc.csh.mapTopic(shortname, topicId);
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.

 採用された回答

Ramon Diaz
Ramon Diaz 2021 年 8 月 9 日

24 投票

Same issue for me... solved by entering the following three commands into MATLAB, one after the other:
>> rehash toolboxcache
>> restoredefaultpath
>> savepath
(solution found from a similar issue addressed here:
I remember doing this when I upgraded from R2019 to R2020 as well.

12 件のコメント

Jacobo Martinez-Villa
Jacobo Martinez-Villa 2021 年 9 月 21 日
Thanks a lot, it worked in 2021a.
David Minor
David Minor 2021 年 11 月 14 日
Thanks worked in R2021b
Scott Miller
Scott Miller 2022 年 3 月 6 日
Same, worked for R2021b. Thanks!
Firat Soylu
Firat Soylu 2022 年 3 月 18 日
編集済み: Firat Soylu 2022 年 3 月 18 日
Thanks a lot!
This worked for me on Ubuntu 20.04 & Matlab 2021b, after getting the same error with a fresh installation.
Antoni
Antoni 2022 年 6 月 28 日
Thanks a lot! It works in R2022a too.
Zaida Escila Martínez Moreno
Zaida Escila Martínez Moreno 2022 年 8 月 24 日
Hi! I have 2 Matlab versions installed: 2019b and 2021b. I received this error in 2021b out of nowhere today, but before finding your solution, I opened 2019b and it was working perfectly. Then, I used this commands in 2021b and it fixed it, but when I opened 2019b again, now this one had the problem. I fixed it with the same command, but now 2021b is not working...
Basically, when I fix one of my versions with your answer, the other version that was previously working alright now gets the error... What can I do to make both of them work?
Ramon Diaz
Ramon Diaz 2022 年 9 月 4 日
have you solved this?... why do you need to keep using the older version? Mathworks usually makes sure every new version is backwards compatible
Zaida Escila Martínez Moreno
Zaida Escila Martínez Moreno 2022 年 9 月 23 日
編集済み: Zaida Escila Martínez Moreno 2022 年 9 月 23 日
Sorry for such a delay @Ramon Diaz, I just saw your response.
I use a script that someone else authored that does not work in 2021b but does in 2019b; however, there is also some new features of 2021b that I like to use when I am working on other scripts, so I need both versions.
Image Analyst
Image Analyst 2022 年 9 月 23 日
Let's fix the old one so that it works with the latest version. Can you attach your old script in a new question so we can fix it?
Alejandro Blenkmann
Alejandro Blenkmann 2023 年 1 月 17 日
編集済み: Alejandro Blenkmann 2023 年 1 月 17 日
Worked on r2022b too. Thanks!
Eva Bracey
Eva Bracey 2023 年 8 月 16 日
Yes, also worked on r2022b. Thank you!
Julian David
Julian David 2024 年 10 月 29 日
Also worked on Matlab 2024a. This is th best reponse ever.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by