Figures Publishing Issue with Matlab software
Show older comments
Whenver I am trying to publish a code, the figures are not present in the code, but whenver I publish the same file on MATLAB online, there is no issue.
I get the following error:
Error using internal.matlab.publish.PublishFigures>printSnap (line 290)
Unable to write to C:\Users\Abhishek Kumar\AppData\Local\Temp.
FILEATTRIB output is
archive:0
system:0
hidden:0
directory:1
UserRead:1
UserWrite:1
UserExecute:1
GroupRead:NaN
GroupWrite:NaN
GroupExecute:NaN
OtherRead:NaN
OtherWrite:NaN
OtherExecute:NaN
Error in internal.matlab.publish.PublishFigures.snapFigure (line 193)
feval([method 'Snap'],f,imgFilename,imageFormat,opts);
Error in internal.matlab.publish.PublishFigures/snap (line 64)
imgFilename = obj.snapFigure(f,obj.options.filenameGenerator(),obj.options);
Error in internal.matlab.publish.PublishFigures/leavingCell (line 113)
imgFilename = snap(obj, f);
Error in snapnow>leavingCell (line 208)
newFiles = data.plugins(iPlugins).instance.leavingCell(iCell);
Error in snapnow (line 144)
data = leavingCell(iCell(k), data, doCapture(k));
Error in HW03_W21 (line 77)
m1 = 5.974*10^24; % Earth's Mass in kg
Error in evalmxdom>instrumentAndRun (line 109)
text = evalc(evalstr);
Error in evalmxdom (line 21)
[data,text,laste] = instrumentAndRun(file,cellBoundaries,imageDir,imagePrefix,options);
Error in publish
Error in mdbpublish (line 54)
outputPath = publish(file, options);
Caused by:
Error using print
Too many input arguments.
F4 =
function_handle with value:
@(eps)(1-pi2)*((eps+pi2)/(abs(eps+pi2))^3)+pi2*((eps+pi2-1)/(abs(eps+pi2-1))^3)-eps
Error using internal.matlab.publish.PublishFigures>printSnap (line 290)
Unable to write to C:\Users\Abhishek Kumar\AppData\Local\Temp.
FILEATTRIB output is
archive:0
system:0
hidden:0
directory:1
UserRead:1
UserWrite:1
UserExecute:1
GroupRead:NaN
GroupWrite:NaN
GroupExecute:NaN
OtherRead:NaN
OtherWrite:NaN
OtherExecute:NaN
Error in internal.matlab.publish.PublishFigures.snapFigure (line 193)
feval([method 'Snap'],f,imgFilename,imageFormat,opts);
Error in internal.matlab.publish.PublishFigures/snap (line 64)
imgFilename = obj.snapFigure(f,obj.options.filenameGenerator(),obj.options);
Error in internal.matlab.publish.PublishFigures/leavingCell (line 113)
imgFilename = snap(obj, f);
Error in snapnow>leavingCell (line 208)
newFiles = data.plugins(iPlugins).instance.leavingCell(iCell);
Error in snapnow (line 144)
data = leavingCell(iCell(k), data, doCapture(k));
Error in evalmxdom>instrumentAndRun (line 109)
text = evalc(evalstr);
Error in evalmxdom (line 21)
[data,text,laste] = instrumentAndRun(file,cellBoundaries,imageDir,imagePrefix,options);
Error in publish
Error in mdbpublish (line 54)
outputPath = publish(file, options);
Caused by:
Error using print
Too many input arguments.
Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!