Bug in audioread with native option R2022b?

The audioread command with 'native' option should return the native type of the waveform.
It seems there is a bug in R2022b, where it converts to single
>> y=audioread('example.wav','native');
>> class(y)
ans =
'single'
>> max(y)
ans =
single
0.0663
It works fine on R2022a (returns 'int16' and ADC integer count as max value).
Is it a bug or do I miss a change in the release note?

2 Comments

I am having similar problem with my mac..
It keeps showing
Error using audioread
Expected input to be a non-missing string scalar or
character vector.
Error in assignment (line 20)
[y,fs] = audioread(fileaudio);
May i know how do you fix it?
This is entirely different problem not related to the bug with 'native' option. It seems your fileaudio is non valid string more like a programing issue on your side.

Sign in to comment.

 Accepted Answer

I has been confirmed by TMW support that is indeed a bug due to third party library they are using.

More Answers (0)

Products

Release

R2022b

Community Treasure Hunt

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

Start Hunting!