[英]Getting the error “ `butter' undefined” in Octave. How to fix it?
When I write this line in Octave: 当我在Octave中写这行时:
[b,a] = butter (5,0.2);
I get the error: 我收到错误:
error: `butter' undefined near line 1 column 10 错误:'butter'在第1行第10列附近未定义
How can I get rid of it? 我怎么能摆脱它? Thanks. 谢谢。
Seems that you forgot to load the signal package. 似乎您忘记加载信号包。 You have to install and load it in order to use the butter
function: 您必须安装并加载它才能使用butter
功能:
pkg install -forge signal
pkg load signal
[b,a] = butter (5,0.2);
Please take a look in the Octave documentation . 请查看Octave 文档 。 It explains how to install and how to load packages. 它解释了如何安装以及如何加载包。
The butter
function is part of the signal
package. butter
功能是signal
包的一部分。 You need to download, install and load the package before you can use its functions: 您需要先下载,安装和加载软件包,然后才能使用其功能:
>> pkg install -forge signal
>> pkg load signal
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.