CD Error when publishing

1 view (last 30 days)
Erik
Erik on 18 Sep 2014
Answered: Walter Roberson on 4 Sep 2015
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.

Answers (2)

Sean de Wolski
Sean de Wolski on 18 Sep 2014
Edited: Sean de Wolski on 18 Sep 2014
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 on 4 Sep 2015

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!