MATLAB: Show audioinfo in msgbox

app designeraudioMATLABmsgbox

Hello guys,
Anyone have a way to display the audioinfo of a wav file into a msgbox?

Best Answer

okh99 - if you want to use msgbox then you could do something like
info = audioinfo(filename); % <---- where filename is the name of your wav file
message = sprintf('Filename: %s\nCompressionMethod: %s\nNumChannels: %d\nSampleRate: %d\n', ...
info.Filename, info.CompressionMethod, info.NumChannels, info.SampleRate);
hMsgBox = msgbox(message);
You can add add more data to (or remove from) the message.
Related Question