Audioinfo - 'undefined function for type char' error

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 :)

 채택된 답변

Star Strider
Star Strider 2016년 6월 21일

0 개 추천

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

댓글 수: 2

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.
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

태그

질문:

2016년 6월 21일

댓글:

2016년 6월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by