倍频程信号包安装 [英] Octave signal package installation

查看:92
本文介绍了倍频程信号包安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 16.04上使用,当前使用Octave作为Matlab的倒数进行信号处理.一切都很好,直到我需要使用medfilt1函数来获取中位数. Octave生成了一个错误报告,指出我的系统上未安装信号包.浏览了一下之后,我找到了命令

 sudo apt-get install octave-signal

我运行了此命令,它显示下载和安装的所有内容均完美无缺.但是,如果我再次运行八度脚本,该错误仍然存​​在:

警告:"medfilt1"功能属于Octave Forge的信号包 您已安装但尚未加载的文件.要加载软件包,请运行'pkg 八度提示中的加载信号".

请阅读 http://www.octave.org/missing.html 了解如何你可以 贡献缺失的功能. 警告:来自 第524行第5列未实现 filter-practice.m在第8行第2列 错误:"medfilt1"在第8行第3列附近未定义 错误:来自 第8行第2列的filter-practice.m

分析错误消息,我尝试运行pkg load signal,但是终端告诉我没有这样的命令.

找不到

命令:pkg

如何在系统上安装信号包?

pkg命令实际上是八度的一部分,应从八度内运行,而不是从shell终端运行.


该答案的信用将分配给该线程中的成员,但是由于他们同样在扩展注释中得出了结论,并且最终没有发布答案,因此也许会发现其他一些人陷入了这个陷阱:)

I'm on Ubuntu 16.04 and currently using Octave as a reciprocal to Matlab for signal processing. Everything was fine till I needed to use medfilt1 function to get the median. Octave generated an error report saying that signal package is not installed on my system. After browsing a bit I found the command

 sudo apt-get install octave-signal

I ran this command and it showed everything downloaded and installed perfectly. However, if I again run the octave script the error persists:

warning: the 'medfilt1' function belongs to the signal package from Octave Forge which you have installed but not loaded. To load the package, run 'pkg load signal' from the Octave prompt.

Please read http://www.octave.org/missing.html to learn how you can contribute missing functionality. warning: called from unimplemented at line 524 column 5 filter-practice.m at line 8 column 2 error: 'medfilt1' undefined near line 8 column 3 error: called from filter-practice.m at line 8 column 2

Analyzing the error message I attempted to run pkg load signal but the terminal told me that there is no such command.

command not found: pkg

How can I get the signal package installed on my system?

解决方案

The pkg command is actually a part of octave and should be run from within octave, not from a shell terminal.


Credit for this answer goes to the members in this thread, but since they similarly came to the conclusion in extended comments and didn't end up posting an answer, maybe this will find some others falling into this trap :)

这篇关于倍频程信号包安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆