export fig error EPS document
显示 更早的评论
I attach a document created by Matlab to see what could be the matter with Export_fig. The 2014 version and ghostscript have been correctly installed and the graph folder was also in the path. The expected input arguments are correct as far as i am concerned and graphics/data GK folder does exist, is in the path, I have administrator rights and is not open in other applications. Please, what can be the issue?
_export_fig error. Please ensure:
- that the function you used (C:\Program Files\MATLAB\R2017b\VAR\VAR-Toolbox-main\v3dot0\ExportFig\export_fig.m) version 3.13 is from the expected location
- and that you did not made a mistake in export_fig's expected input arguments
- and that ghostscript is properly installed in C:\Program Files\MATLAB\R2017b\VAR\VAR-Toolbox-main\v3dot0\gs9.53.3\bin\gswin32c.exe
If the problem persists, then please report a new issue.
In your report, please upload the problematic EPS file: C:\Users\HP\AppData\Local\Temp\tpfc8d6fbd_3cbc_4eb8_a0a9_88de882788c1.eps (you can then delete this file).
Error using export_fig (line 923)
Could not create graphics/DATA_GK.pdf - perhaps the folder does not exist, or you do not have write permissions, or
the file is open in another application
Error in SaveFigure (line 31)
export_fig(path,['-' type],'-painters')
Error in VARToolbox_Primer (line 60)
SaveFigure('graphics/DATA_GK',1)_
采纳的回答
更多回答(1 个)
Walter Roberson
2021-2-10
0 个投票
Could not create graphics/DATA_GK.pdf - perhaps the folder does not exist, or you do not have write permissions, or
You are passing in graphics/DATA_GK as the place to save to, and export_fig is automatically appending .pdf as the file extension, and trying to create a file named graphics/DATA_GK.pdf .
However, you made a directory named graphics/DATA_GK that you are expecting the file to be saved into. This is a problem on Windows, which is Not Fond of having a directory and a file with the same base name. Directories do have a real extension for 8.3 naming purposes, but higher level APIs tend to only look at the base name to determine whether a name corresponds to a directory.
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!