CD Error when publishing

3 次查看(过去 30 天)
Erik
Erik 2014-9-18
I'm a student that is relatively new to MATLAB. I recently purchased the student edition and I've found that no matter what I do, I can't get anything to publish. I've had no problems using the exact same steps on the school computers, so I'm unsure what the problem is. When the script is finished, tested, and saved, I try using the "publish" button on the factory settings. A blank window opens up and I get the following errors. Does anyone have any tips or suggestions? I've tried uninstalling and reinstalling the program with no luck. Thanks.
Error using cd Cannot CD to C:\Users\Erik\AppData\Local\Temp (Name is nonexistent or not a directory).
Error in tempdir (line 30) curr_dir = cd(tmp_dir);
Error in tempname (line 17) dirname = tempdir;
Error in evalmxdom>instrumentAndRun (line 75) [~,tempVar] = fileparts(tempname);
Error in evalmxdom (line 21) [data,text,laste] = instrumentAndRun(file,cellBoundaries,imageDir,imagePrefix,options);
Error in publish (line 164) dom = evalmxdom(file,dom,cellBoundaries,prefix,imageDir,outputDir,options);
Error in mdbpublish (line 55) outputPath = publish(file, options);
Error using open (line 68) NAME must contain a single string.

回答(2 个)

Sean de Wolski
Sean de Wolski 2014-9-18
编辑:Sean de Wolski 2014-9-18
which -all size
My guess is you've written your own size function that is shadowing MATLAB's size and throwing off publish.
If it is your own size function rename it to something else to avoid the conflict.

Walter Roberson
Walter Roberson 2015-9-4

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by