失敗我打電話的ghostscript與執行外部程序的MATLAB
cmd = [gs ' -sOutputFile="' outputFile '" -f "' inputFile '"'];
status = system(cmd); % Run Ghostscript.
導致像這樣的命令:
gswin32c.exe -q -dSAFER -dNOPAUSE -dBATCH -dEPSCrop -dUseFlateCompression=true -dAutoRotatePages=/None -dHaveTrueTypes -r600 -dGraphicsAlphaBits#4 -dTextAlphaBits#4 -sDEVICE=png16m -sOutputFile="C:\SVN\google code\latexfigure\trunk\example\TEMP9058.png" -f "C:\SVN\google code\latexfigure\trunk\example\TEMP9058.pdf"
這是有效的代碼,並在Windows的命令窗口工程。 但MATLAB抱怨:
明鏡Befehl 「gswin32c.exe」 IST entweder falsch geschrieben奧德 konnte nicht gefunden werden。
'gswin32c'是在窗口的路徑,我已經重新啓動matlab。 什麼可能出錯?
嘗試並使用絕對路徑到您的可執行文件,如果這樣可以修復解決方案,那麼看起來Matlab似乎正在做一些與路徑意想不到的事情。 – 2012-03-04 19:00:47