关于ghostscript not found 解决方案

在尝试运行Machine Learning - A Probabilistic Perspective的代码时,遇到了'ghostscript not found'的错误。解决方法包括下载Ghostscript并放置在C盘,以及获取并运行ghostscript.m代码。官方下载的pmtksupportCopy文件夹为空,而之前下载的包含所需内容。
摘要由CSDN通过智能技术生成

最近在看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
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值