LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab filter function to labview filter function

Solved!
Go to solution

hello ,

 

this matlab code for wav file read and filter them

 

 

 

[x,fs]=wavread('apple11.wav');

subplot(121);plot(x);title('x waveform 1');

xx=double(x);


y=filter([1 -0.9495],1,xx);

 

 

 

 

i have xx array in labview.

 

now i want to filter them same as in matlab ,,

 

anyone know ...  how can do this ?

 

please help me .. 🙂

 

 

 

 

 

0 Kudos
Message 1 of 5
(4,228 Views)

Hi Nirav,

             Try Signal Processing -> Filters palette. Also you could try using MatScript node (MathScript module required) for the Matlab commands implemented in LabVIEW directly.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 2 of 5
(4,223 Views)
Solution
Accepted by topic author Nirav_Virpara

Matlab help tells you:

y = filter(b,a,X) filters the data in vector X with the filter described by numerator coefficient vector b and denominator coefficient vector a. If a(1) is not equal to 1, filter normalizes the filter coefficients by a(1). If a(1) equals 0, filter returns an error.

 

now have a look at the LabVIEW IIR digital filters

IIR filter.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 5
(4,220 Views)

Thanks a lot sir 🙂 🙂

 

its very helpful to me ... 🙂 🙂

0 Kudos
Message 4 of 5
(4,212 Views)

I'm not sure what's going on here, do you have you forward coefficient just set to one?

 

Adam

0 Kudos
Message 5 of 5
(4,118 Views)