[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wavwrite error

From: harish3679
Subject: wavwrite error
Date: Mon, 10 Sep 2018 02:17:24 -0500 (CDT)

Hello guys,

I have problem executing this piece of code, as it throws an error for
sampling frequency. Please, do share your suggestions

dur = 1.0;
fs = 8000;
tt = 0 : (1/fs) : dur;
xx = sin( 2*pi*2000*tt );
wavwrite("sound.wav",xx', fs, 16)

>> wavwrite("sound.wav",xx', fs, 16)
error: wavwrite: sample rate FS must be a positive number
error: called from
    wavwrite at line 91 column 5

Thanks and Regards!!

Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]