Search Engine www.edaboard.com

Hamming Matlab

44 Threads found on edaboard.com: Hamming Matlab

Help me in Matlab and Wav File ** Will donate 100 points **

Have you tried searching MathWorks for "DTMF"? This is the first hit: By the way, the DTMF tones in the wav file are 201020. I did this in matlab: x = wavread('batandsplab.wav'); specgram(x, 512, 8000, hamming(512), 500); colormap(bone.^4); ylim();

Matlab FIR Design question

How about this? N=64; h=fir1(N-1, , hamming(N)); freqz(h,1,512); I think a hamming window has fixed characteristics. If you change its ripple or attenuation, then it isn't a hamming window anymore.

Matlab embeded PSD function

You specified "Welch", and that applies hamming weighting, so you no longer have a cosine wave. hamming weighting spreads the peak and causes sidelobes 42dB below the peak.

Matlab demo running error, help debug please

There is a matlab demo in help file on PSD. fs = 1000; % Sampling frequency t = (0:fs)/fs; % One second worth of samples xn = sin(2*pi*50*t); Hs = spectrum.periodogram('hamming'); psd(Hs,xn,'Fs',fs,'NFFT',1024,'SpectrumType','twoside') = psd(Hs,xn,'Fs',fs,'SpectrumType','onesided'); Pow = (fs/(2*length(Pxxo)))

low pass filter (matlab)

The command fir1 in matlab implements digital filters based on the window methods , as you indicated the comand h=fir1(n,wn) returns the nth +1 coeficients of a hamming window lowpass linear filter, the vector h is the coeficients of the filter from wich you will convolve the sample demodulated signal. If you want to use other window than (...)

How to implement 12 bit fixed point representation in Matlab

hi all, i have a question here and i am done with the first part on designing the bandpass filter by writing a matlab script below. _________________________________________ % M file for bandpass FIR filter ws1=0.3*pi wp1=0.4*pi; wp2=0.5*pi; ws2=0.6*pi; tr_width=min((wp1-ws1),(ws2-wp2)); M=ceil(6.6*pi/tr_width)+1 n=; wc1=(w

Matlab code for encoding and decoding of touch tone signals

Hallo guys...I am facing a huge problem to the two questions below cause i have never had used matlab in the past..: 1) Investigate functions available in matlab for GF(2) calculus and repeat a (5, 2) hamming code by using matlab. 2). Design syndrome decoder for Q.5 by using matlab Any help (...)

How to use the hamming window function in Matlab and plot the spectrum afterwards?

Hi all, I am trying to do the fft on the digital output of SD modulator in matlab. can anyone tell me how to use the window function in matlab(hamming window) and how to plot the spectrum after this. I am new to matlab programing. Thanks a lot

Cryptography algorithms & simulation with MATLAB- need h

hi, u can develope some basic encryption and decryption algorithms like RSA, CRC, hamming code for error handling etc. and can develop a crypto syatem. Thanks.. HAK..

Help please!!!! i have sinwave with 0.1 v amplitude and 1khz frequency mixed with 5v white noise. i used FFT in matlab to simulate. 1-(Study the use of additional mean value calculation of every data set of FFT spectrum and how it affects the visibility of a present signal.). so, how can i use additional mean value??????????? 2-W

Help! Help! Speech analysis using matlab

I am doing a project in speech analysis and would greatly appreciate any help on how to solve the following problem at hand: Problem a. Using linear predictive analysis, autocorrelation method, implement a matlab based vocoder for a speech signal (any recorded tape). Use a 20 msec frame step combined with a symmetrically hamming window of 30 mse

Hamming Code Performance

Hi Everybody, I need confirmation check in my project I used a hamming code structure by using matlab, the scenario random data hamming(7,4), (15,11), (31,26) Coder qpsk modulator awgn channel qpsk demodulator hamming(7,4), (15,11), (31,26) Decoder I confused with the results @SNR 10 dB (...)

Matlab and fft resolution

You have to use windowing function. For example, hamming window to extract frequency of your interest, like 5 Hz in your case.

Simulation of (7,4) Hamming Code

Hello I need to compare the(7,4) hamming coded bit error probability with the uncoded bit error probabity and a Q function. The matlab code which i have compare the theoretial uncoded ber with hamming (7,4) code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clear N = 10^6 ;% number of bits Eb_N0_dB = ; % multiple Eb/N0 val

i want to design a digital filter with specified impulse respone in matlab

Hi, formulas (4)-(5)-(6) gives you the procedure to obtain the coefficients of the FIR filter you need. You must take into account that array indexes in matlab start from 1 instead of 0 like in the formulas. matlab has built-in Gamma and Bessel functions, as well as hamming window. You must have fd, ts and M. And, of course, you must have (...)

calculating hamming distance in matlab

e.g a='1000001' and b='1110001' --> dist=hamming(a,b); one solution is dist = sum(a ~= b); and other solution is to use pdist Pairwise distance between pairs of objects - matlab

A simple question about windows PSD, FFT in matlab

Hello , I'm new to matlab , and I wanna solve an assignment the question is to generate 4 windows and compute their power spectral, then generate a 4-by-2 plot where the 1st column has windows plots in time domain and the other column for frequency domain , i wrote this code but i have few problems, I hope you can help, thanks in advance %---

repetition code on matlab

You must to apply some checking code, as hamming, CRC, etc... Here there are some examples with CRC coding : +++

Image processing through matlab

how can we calculate hamming distance using matlab can anybody tell me please its my project help meeeeee

filter coefficient calculation using hamming window method in matlab

hi, can u please tell me how I can calculate the fir filter coefficient calculation in matlab using frequency sampling method and window method for 16 taps.

MATLAB - obtaining magnitude spectrums

Obtain and compare the magnitude spectrums of Hanning, hamming and triangular windowed 100 and 110 Hz signals using a 20-ms window for each using matlab. how can i do that? i did plot 100 hz signal and made fft and saw the peak on 100 Hz. but how can i apply windows. please someone help me. i am in deep. :/

Frame Blocking, Hamming Window & MFCC Help

Hi, Please i need help with this matlab code. i am using this melcept function for different samples of me saying the word "one" here is my code =wavread('one.wav'); %Read In Sample a=0.95; aaaa1=filter(,1,aaaaa1); aaa1= melcepst(aaaa1,fs); i get an output for the different samples of me saying one as 54

FIR design - convolution method

I came across the following problem in FIR design using window and convolution techniques . Project a FIR filter using a hamming window to achieve the following specifications: Passband 0,3-3,4 kHz Stopband 0-0,2 e 4-8 kHz Stopband atenuation > 25 dB Sampling frequency 32 kHz Since the transition band is different , in order to solv

How to calculate SNR in this case?

Hi all, I am design a 10bits pipeline ADC and by followingprevious articles I use matlab to do FFT. But here are the problems I met. fin=100Khz, fs=10Mhz, N=8192(number of data points in FFT), M=83 (integer number of cycles within the sampling window), First I used coherent sampling method to do FFT and I got a result, freqd_1. Then I

The Iterative Solutions Coded Modulation Library (ISCML) is an open source toolbox for simulating capacity approaching codes in matlab. It has been developed by Matthew Valenti. It is licensed as free software under the lesser GPL license. The toolbox contains support for the followi

Plotting Frequency Response

Hi All I wish to plot various frequency responses it matlab all on the same plot. I can plot them individually but not together, can anyone reccomend how to do this. This is my code: b=fir1(n,wn,rectwin(n+1),'noscale'); =freqz(b,a,512); plot(w/pi,(abs(h); i wish to plot the same responses but only for different windows. e.g co

window and filter an audio signal

Hi guys! I have this problem I need to sole as soon as possible. I'm coding with matlab. I need to filter a signal saved in a .wav file. I'm reading it using the function wavread and then I create several frames of it through hamming window with an overlap of 50%. At this point I use fft to compute the spectrum of each frame and I make some chan

How to eliminate the white noise?

Try amplitude envelopes, such as hamming weighting. The various weighting functions provide different trade-offs between attenuation of the unwanted frequencies and widening of the spectral peaks. t = linspace(-5*pi,5*pi,1000); x1 = cos(2*pi*5*t); x2 = cos(2*pi*10*t); x3 = cos(2*pi*20*t); x4 = cos(2*pi*50*t); x1 = cos(2*t); x2 = cos(2*pi

How to perform FFT analysis

There are two methods known to me as also mentioned in earlier posts. Just to elaborate them. 1. On cadence ---------- You select the waveform in the waveform window and do the FFT from the calculator available from the analog Design Environment (ADE). The function name is DFT. There you can specify the portion (in time) of the waveform to be

FIR filter probs, PLZ Help!

hey guys im new here and to matlab and ive got a question- does anyone have like a sample of the matlab code that i would use to dtermine the correct order of a filter ( we've been given the stopband freq, passband freq ) for a kaiser window and a hamming window . I know that there's a function called kasier_ord.m / (...)

Ideas for a 3-month long project in electronics and communication

A good project related to communication would be to implement channel coding (hamming codes, convolutional encoder and viterbi decoder) ... source coding techniques ADPCM etc ... modulation techniques on matlab or a DSP processor like TMS320C6713.

Need help with spectrogram? Pls help

I have plotted the spectrogram of linear FM signal using TFTB toolbox in matlab. Here is the code: y=fmlin(128,0.1,0.3); h=tftb_window(21,'hamming'); tfrsp(y,1:128,128,h,1); My questions are: How to find peak values of the spectrogram for every time instant (when you have mesh plot)? How to plot a graph for a constant frequency, that will s

FILTER DESIGN BY THE WINDOW METHOD

Hi everyone; I have to design filter by using the window method without using 'fwind1' command of the code is: %----------------------------------------------------------------------------- = freqspace(21,'meshgrid'); Hd = ones(21); r = sqrt(f1.^2 + f2.^2); Hd((r<0.1)|(r>0.5)) = 0;%the desired bandpass response colormap(

secure wireless transmission - error correction coding

Hello folks, I have one question regarding secure wireless transmission. I am using 433 MHz RF communication for one of my project. I want to know how can i use error correction code for successful transmission of my data from Computer to Atmega8 (uC). I am using matlab for data transmission. I can encode the data using the in build encod

how to use window function with matched filter in m file

From Digital Signal Processing Fundamentals and Applications by: Li Tan Copyright ? 2008, Elsevier Inc. All rights reserved. page 116 Example 4.11. Given the sinusoid by using a sampling rate of fs = 8,000 Hz, use the DFT to compute the spectrum with the following speci

CRC (FEC 2/3 in Bluetooth) error correction

We have a course project to do the FEC 2/3 of Bluetooth in VHDL/matlab I can find the syndrome vector after divisions but how I can build a lookup tables of syndromes to be able to correct to error bit. it is a (15,10) hamming code, which can correct a single bit according to the specification

Bandstop filter coefficient

Hello All, I need 100 order coefficients of bandstop filter with specification FIR window- hamming order -100 Fs - 1200Hz fc1- 47Hz , fc2 63Hz. i know this can be easily generated in matlab fdatool , but I dont have matlab, plz help, its urgent - also the coefficients i need should be in 8 bit unsigned integer. thanks in (...)

genetic algorithm fir filter design

hi i need your kind attention and help for my problem i hav to design FIR filter using genetic algortihm in matlab,kindly help me to design such filter using GAtoolbox or by matlab programming or by C++ programming,in my proposed filter power consumption reduces as hamming distance (signal toggling between bits)is reduced,also mean (...)

need help for understanding number of points, fs, frame blocking for MFCC

Hi all, I have to do feature extraction by using MFCC for my wav. data. But I am stuck at the beginning:cry: My questions would be silly and I apologize at the beginning for that. So firstly I want to do frame blocking and then for each frame i will apply hamming window. I dont know about the points.... When I use matlab command, = wa

help- window function

sir,, i am rashmi,, i am doing Mtech project,, i need to design a filter to measure the Total Harmonic Distortion in meters, so i have selected the FIR filter ,, while designing the FIR filter, how to choose the window function, i mean rect, hamming, hanning, etc,, how to select the accurate one, which method or formula to apply

signal processing using windowing

I am doing random vibration and starting with the raw data from either test or finite element modeling. I am using matlab to process time domain data into the frequency domain. First I want to apply windowing (hamming to start) to the data and then convert to frequency domain. My data is in table form ie, x, y, z, time. Column 1 is x, col

I want help for linear phase FIR bandpass filter

A linear phase FIR bandpass filter is required to satisfy the following specifications: Passband=8-12kHz Stopband ripple=0.001 Passband ripple=0.01 Transition width=3kHz Sampling frequency=48kHz a) Calculate the number of filter coefficients for each of the following cases: i) Using the hamming window, ii) Using the Hanning window, iii) U

Cyclic codes error detection

I done in matlab a routine to determine to the hamming(7,4,1) code, the amount of syndromes equal to Zero. You could perform some few changes to fit to your code. % Program to generate all the input error patterns from 0000000 to 1111111 % and then calculate corresponding syndromes d = ; h =[ ; [ 0

Mel Filter Bank Processing

Hello, Sorry about my ignorance, I am trying to learn this subject for a finals project I am undertaking. Brief background: I am developing a Speech Recognition algorithm that identifies whether someone is saying a particular word, in this case "Yes" or "No". I am computing an MFCC (From this paper: