Audioinfo - 'undefined function for type char' error

1 Ansicht (letzte 30 Tage)
Anke Kügler
Anke Kügler am 21 Jun. 2016
Kommentiert: Star Strider am 22 Jun. 2016
Hi,
I try to get the info from a wave file using the function 'audioinfo'. However, no matter what I do, I keep getting that "Undefined function 'audioinfo' for input arguments of type 'char'." error.
I tried
[filename, filepath] = uigetfile();
fullname = fullfile(filepath, filename);
info=audioinfo(fullname);
But even when I put the file in my current folder and type in the actual name, I keep getting the error.
I'm pretty lost. Any help VERY appreciated. Thank you :)

Akzeptierte Antwort

Star Strider
Star Strider am 21 Jun. 2016
The audioinfo funciton was introduced in MATLAB version R2012b. If you have an earlier version, you will not have it.
  2 Kommentare
Anke Kügler
Anke Kügler am 22 Jun. 2016
Haha, thanks, that actually was the reason. That's what happens when you keep switching back and forth between new (at home) and old (office) versions. How annoying.
Is there an equivalent for older versions? I know that audioread/write replaced waveread/write.
Star Strider
Star Strider am 22 Jun. 2016
My pleasure!
Looking through the R2012a online documentation (the release immediately before the one in which wavinfo made its debut), R2012a has the wavinfo function that would seem to do what you want.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by