Can you post your MATLAB code?hi
I have a double data-type array.
when I write it into wav audio file using audiowrite, and later read it using audioread, i get different values from the original array.
they are both double, but still, values are different.
any ideas?
the values in wmed_signal1 and eval_signal_en are very close, but still differ.Can you post your MATLAB code?
audiowrite('wmed_signal1.wav' , wmed_signal1, Fs);Can you cut and paste the code as simple text?
Apparently audioread and audiowrite are using different formats or is doing some signal processing to the data.audiowrite('wmed_signal1.wav' , wmed_signal1, Fs);
eval_signal_en = audioread('wmed_signal1.wav')';
Nice of you to contribute your MATLAB expertise.Hi Noy Uzrad
you are missing the actual 'send-to-speakers' command
sound(y,Fs)
the audioread command only loads from the audio file to MATLAB workspace, it doesn't actually play it.
The reproduction of the audio file requires Fs to be specified, that is precisely the 2nd input field of command sound.
regards
John BG