audiowrite audio file create

6 views (last 30 days)
Marco  Cornero
Marco Cornero on 26 Nov 2015
Commented: Marco Cornero on 26 Nov 2015
I should create an audio file with audiowrite, to save the same sound I can hear with sound function. How should I set function parameters?
% code
load flux_adaptive_100
filename = 'flux_adaptive_100.wav';
audiowrite (filename,y,Fs);
clear y Fs
end
  10 Comments
Marco  Cornero
Marco Cornero on 26 Nov 2015
if I open in matlab flux_adaptive_100.wav I obtain a column with constant value = 1
Marco  Cornero
Marco Cornero on 26 Nov 2015
I found the solution!!! I had to write y=flux_adaptive_100(:,1)

Sign in to comment.

Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!