最近在看Machine Learning - A Probabilistic Perspective这本书,机器学习。MIT出版。
作者:Kevin P Murphy
书的website:http://www.cs.ubc.ca/~murphyk/MLbook/index.html.
今天拿起代码,试着运行了下,出现了一个错误,运行到printPmtkFigure这个函数,出现:“ghostscript not found matlab”, 以前貌似也遇到相似的问题。解决了一早上,终于搞好了。
解决方法:
1 下载 Ghostscript, 网址:http://www.ghostscript.com/。
放在c盘。
2 从网上下载ghostscript.m代码,
附上:
%GHOSTSCRIPT Calls a local GhostScript executable with the input command
%
% Example:
% [status result] = ghostscript(cmd)
%
% Attempts to locate a ghostscript executable, finally asking the user to
% specify the directory ghostc