MATLAB: Audioinfo – ‘undefined function for type char’ error

audioinfo

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 🙂

Best Answer

The audioinfo funciton was introduced in MATLAB version R2012b. If you have an earlier version, you will not have it.