Getting the "oil" undefined "error in Octave, how to fix it?

When I write this line in Octave:

[b,a] = butter (5,0.2);

      

I am getting the error:

error: 'oil' is undefined near row 1 column 10

How can I get rid of it? Thank.

+3


source to share


2 answers


You seem to have forgotten to download the signal package . You must install and download it to use the function butter

:

pkg install -forge signal
pkg load signal
[b,a] = butter (5,0.2);

      



Please take a look at the Octa documentation. It explains how to install and how to download packages.

+3


source


The function butter

is part of the package signal

. You need to download, install and download the package before you can use its features:



>> pkg install -forge signal
>> pkg load signal

      

+2


source







All Articles