Daniel C Jacobs
Daniel C Jacobs

Reputation: 750

Octave 'wavread' undefined

I have GNU Octave 5.2.0, and I want to use it to analyze the IQ data in a wav file. This link describes a function called wavread which I can use in Octave, but when I run y = wavread(filename), I get this error message:

error: 'wavread' undefined near line 1 column 1

Why do I get this? My best guess is that wavread is deprecated for some reason and only exists in earlier versions. My other guess is that I have to install an extension to use wavread, but I didn't find a source that allows me to do this.

Upvotes: 2

Views: 4531

Answers (1)

Daniel C Jacobs
Daniel C Jacobs

Reputation: 750

As discovered by @TasosPapastylianou, the wavread function is deprecated as of Octave version 5. Solution is to use audioread function.

Upvotes: 2

Related Questions