help-octave
[Top][All Lists]
Advanced

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

exporting data using wavwrite and interpolation


From: Rick T
Subject: exporting data using wavwrite and interpolation
Date: Mon, 19 Mar 2012 19:50:47 -1000

Greetings All

I'm trying to export the data that is shown in plot(xx,yy) using wavwrite.
But when I do a plot of yy to check if it's exporting the way I want it to I notice the plot(xx,yy) and plot(yy)
don't match up, which is most likely caused by yy not being equally spaced correctly.  How can I fixed this? so when
I do a plot(xx,yy) and plot(yy) they will match?

example:

clear all, clf

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)

wavwrite([yy'] ,16,32,'/tmp/test.wav')


here's an image of my plot
http://tinypic.com/r/2lu4ajt/5

--


reply via email to

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