How to get past cd error on starting GUIDE?

3 次查看(过去 30 天)
Frustration! All the posts I can find on GUIDE start by selecting from GUIDE Quick Start/Create New GUI. But when I select “Blank GUI (Default) I get the following error:
Error using cd Cannot CD to C:\Users\fackerman\AppData\Local\Temp;c:\Program Files\Java\jdk1.6.0_21\bin (Directory access failure).
Error in tempdir (line 30) curr_dir = cd(tmp_dir);
Error in tempname (line 17) dirname = tempdir;
Error in guidetemplate/processDialogResult (line 159) temp = tempname;
Error in guidetemplate/dialogCallback (line 103) processDialogResult(quickstartpanel);
Warning: Error occurred while evaluating listener callback.
From cmd I can cd to both of these directories. What’s the problem? How do I fix it?

采纳的回答

Steven Lord
Steven Lord 2015-8-11
It looks like the TEMPDIR function is not returning a single directory name, but two.
Have you created your own TEMPDIR function that is shadowing the one included with MATLAB? If so, rename it.
Have you defined either of the environment variables TEMP or TMP? If so, undefine them, restart MATLAB (cleaning TEMPDIR may work, but better to make sure all of MATLAB recognizes the changes) and try again.
  1 个评论
Frank
Frank 2015-8-11
I use a naming convention that nearly guarantees that I never conflict with a MATLAB name, but TEMP and TMP were in my environment variables list and when I removed them I can now get the GUIDE empty template. Hopefully removing these didn’t break anything else.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by