[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exporting data using wavwrite and interpolation
From: |
CdeMills |
Subject: |
Re: exporting data using wavwrite and interpolation |
Date: |
Tue, 20 Mar 2012 01:08:09 -0700 (PDT) |
Rick T wrote
>
>
>
> xx=[0, 0.296192, 0.592384, 0.888577, 1.18477, 1.48096, 1.77715, 2.07335,
> 2.36954, 2.66573, 2.96192, 3.25811, 3.55431, 3.8505, 4.14669, 4.44288];
>
> yy=[0, 0.406737, 0.743145, 0.951057, 0.994522, 0.866025, 0.587785,
> 0.207912, -0.207912, -0.587785, -0.866025, -0.994522, -0.951057,
> -0.743145,
> -0.406737, -2.44929e-16];
>
>
> subplot(2,1,1),plot(xx,yy) %this is what I really want the export wav file
> to look like
>
> subplot(2,1,2),plot(yy)
>
>
In the first case, xx samples, the horizontal coordinates, are linearly
spaced by 0.29619. In the second case, there are no xx samples, so the
horizontal coordinates are (1:length(yy)). Try playing with the FS parameter
of wavwrite for finer control of the horizontal points.
--
View this message in context:
http://octave.1599824.n4.nabble.com/exporting-data-using-wavwrite-and-interpolation-tp4487761p4487974.html
Sent from the Octave - General mailing list archive at Nabble.com.