[Scilab-users] [Users] Discrete cosine transform
TViT
tvitklg at rambler.ru
Tue Mar 26 09:36:24 CET 2013
Say please why the example, given in the help does not work? What
communication(connection) DCT and FFTw?
In my representation FFT through one script is carried out, and DCT through
another script however dct.sci has not found in Scilab 5.4.0
//----------------------------------
-->d=dct(s);
!--error 999
dct: Creation of requested fftw plan failed.
//----------------------------------
// build a sampled at 1000hz containing pure frequencies
// at 50 and 70 Hz
sample_rate=1000;
t = 0:1/sample_rate:0.6;
N=size(t,'*'); //number of samples
s=sin(2*%pi*50*t)+sin(2*%pi*70*t+%pi/4)+grand(1,N,'nor',0,1);
d=dct(s);
// zero low energy components
d(abs(d)<1)=0;
size(find(y1<>0),'*') //only 30 non zero coefficients out of 600
clf;plot(s,'b'),plot(dct(d,1),'r')
--
View this message in context: http://mailinglists.scilab.org/Users-Discrete-cosine-transform-tp4024712p4026359.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list