Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我以最简单的形式使用分位数函数:
x = [1.2,3,4,5]; y = quantile(x,0.5);
但我得到了错误:
“double”类型的输入参数的未定义函数“quantile”。
我在 MATLAB R2009a 中没有出现此错误,但在 R2012a 中出现此错误。可能是什么原因?
请运行:
license('test', 'Statistics_Toolbox')
如果这返回 0,那么您没有统计工具箱的有效许可证。
但是,如果您想在示例中使用它,则以下代码将执行以下操作:
y = median(x);
quantile是统计工具箱的一部分。如果您在新安装中无权访问该功能,您将无法使用该功能。
quantile
要检查您安装了哪些工具箱,请ver在命令提示符处键入。
ver