我试图在我的SaturnAPI上制作一个在Octave上运行的箱线图。我收到以下错误:
`boxplot' undefined near line 21 column 1
以下是我的代码,可在Saturn Fiddle上执行。 Octave没有boxplot功能吗?
% Welcome to SaturnAPI!
% Start collaborating with MATLAB-Octave fiddles and accomplish more.
% Start your script below these comments.
axis ([0,3]);
boxplot ({randn(10,1)*5+140, randn(13,1)*8+135});
set(gca (), "xtick", [1 2], "xticklabel", {"girls", "boys"})
title ("Grade 3 heights");
print("MyPNG.png", "-dpng", "-r120")
更新:我按照下面的评论做了
aptitude install octave-statistics
还添加了两个文件,/usr/share/octave/site/m/startup/octaverc
和/usr/share/octave/3.6.2/m/startup/octaverc
,如此
## System-wide startup file for Octave.
##
## This file should contain any commands that should be executed each
## time Octave starts for every user at this site.
pkg load statistics
但现在我有以下错误:
warning: function /usr/share/octave/packages/statistics-1.1.3/fstat.m shadows a core library function
error: binary operator `==' not implemented for `scalar' by `cell' operations