DSPRelated.com

modeling digital PLL in matlab

Started by ganesh in comp.dsp14 years ago 3 replies

hi, I'm trying to model an existing DPLL in matlab. The DPLL has a simple 1st order LPF and an NCO (numerical controlled oscillator). The LPF...

hi, I'm trying to model an existing DPLL in matlab. The DPLL has a simple 1st order LPF and an NCO (numerical controlled oscillator). The LPF has a proportionality gain and an integral gain. I first used the transform s = [1 - (z^-1)]/T where T = sample period to convert from z-domain to s-domain. Value of T is about 10 ns = 10^-8 seconds. I also tried the bilinear transform. The proble...


2D FFTW3 vs. MATLAB difference only near center place

Started by hyun.ha in comp.dsp12 years ago 3 replies

Dear friends, Here I have a problem to re-produce same results with MATLAB and FFTW during 2 dimensional FFT. I'm trying to do FFT with...

Dear friends, Here I have a problem to re-produce same results with MATLAB and FFTW during 2 dimensional FFT. I'm trying to do FFT with Gaussian convolution which coordinates varies from negative to positive, FFTW3 seems not to calculate the values correctly. It happens only near center place. And it affects IFFT and it's shifted results seriously in my calculation. ---------------------...


Group Delay

Started by Anonymous in comp.dsp18 years ago 2 replies

Hi, I'm quite new with matlab and dsp.... and I would like to add a group delay on a digital signal with matlab. I have a vector...

Hi, I'm quite new with matlab and dsp.... and I would like to add a group delay on a digital signal with matlab. I have a vector representing the signal and I want to add a group delay (constant or not) without any effects on frequencies. Any ideas? Thanks a lot for your help. Stef


Gaussian complex random vector with Matlab

Started by svince in comp.dsp16 years ago 1 reply

Hello, I would like to know how to generate a gaussian complex vector ( ~N(0,1) ) with Matlab. Thanks you for your help. Vincent

Hello, I would like to know how to generate a gaussian complex vector ( ~N(0,1) ) with Matlab. Thanks you for your help. Vincent


how does matlab zero pad on fft

Started by CDB in comp.dsp20 years ago 3 replies

hello, i am trying to compare my versus matlab's implementaion of a convolution in the frequency domain. i have a mask that is not the...

hello, i am trying to compare my versus matlab's implementaion of a convolution in the frequency domain. i have a mask that is not the same size of the image (in fact its much smaller). but i fft2 the mask with the dimensions of the image and then convolve with the fft2 of the image. my question i, what method is used for zero padding the mask to be the same size of the image? can...


want to understand how Matlab handle image resolution/rate conversion?

Started by kiki in comp.dsp19 years ago 1 reply

Hi all, I read into the "imresize" Matlab function and want to understand how does these types of image transformation work... Here is the...

Hi all, I read into the "imresize" Matlab function and want to understand how does these types of image transformation work... Here is the code segment in "imresize"; it uses the "maketform" function. I also studied that "maketform" and attached the example as follows: Can anybody tell me what does "maketform('affine',[.5 0 0; .5 2 0; 0 0 1]);" mean? Especially what does [.5 0 0...


efficient masure of similarity between two signals in MATLAB

Started by Sylvia in comp.dsp17 years ago 8 replies

Is there more efficient way of measuring the similarity between two signals other than corrcoef function in MATLAB. I donot want to calculate...

Is there more efficient way of measuring the similarity between two signals other than corrcoef function in MATLAB. I donot want to calculate the lag between two signals(for which we can use scot method phat method etc)but i want to measure the similarity between two signals. Thanx _____________________________________ Do you know a company who employs DSP engineers? Is it already lis...


[Matlab FFT]: FFT and ESD from Literature Definition

Started by kit in comp.dsp11 years ago 3 replies

Hi all I am complete beginner in DSP and FFT in matlab. Thanks for helping guys ! I have a vector of signal x(t) with its time vector. I...

Hi all I am complete beginner in DSP and FFT in matlab. Thanks for helping guys ! I have a vector of signal x(t) with its time vector. I want to obtain a frequency representation of the signal, in particular the energy spectrum of x(t) in the following definition: _____________________________________________________________________________ I stumbled on this explanation to obtain the e...


matlab IIR filter response transient problems

Started by tanoid in comp.dsp17 years ago 3 replies

Hello, I have designed an IIR bandbass filter in matlab using cheby1 function to generate A and B coefficient values. I am generating sinusoids...

Hello, I have designed an IIR bandbass filter in matlab using cheby1 function to generate A and B coefficient values. I am generating sinusoids signals to test whether the design works, however this is giving me an unwanted response to begin with, some kind of transient. I have tried to stop this by feeding the filter with zeros before the signal but with no luck. What is causing this and how can...


Frequency offset & superhet receiver

Started by pawinll in comp.dsp17 years ago 1 reply

Hi there, I'm very new to DSP.Well, I am working on the 2-stage superhet receiver design (it uses QPSK modulation with carrier freq 2.4GHz)....

Hi there, I'm very new to DSP.Well, I am working on the 2-stage superhet receiver design (it uses QPSK modulation with carrier freq 2.4GHz). The question is how can I calculate the frequency offset of the system. I need to simulate the system in matlab, wanna see how the constellation diagram rotated. Is it something related to Mpower function in Matlab. Looking forward to see your suggestion. ...


differential equations matlab

Started by arun in comp.dsp16 years ago 1 reply

Hi, i programmed a model in matlab which requires solving differential equations numerically. i used the commands options =...

Hi, i programmed a model in matlab which requires solving differential equations numerically. i used the commands options = odeset('AbsTol',1e-20,'RelTol',1e-4); [t y] = ode15s(@odes, [t1 t2], icval1, options); and wrote the eqns. The end result of the simulation is about 15 parameters. The initial condition for all are the same and are set to a 100nM (nanomolar). The end result is th...


Re-engineering Matlab

Started by rajesh in comp.dsp16 years ago 7 replies

Is anyone interested in re-engineering Matlab?

Is anyone interested in re-engineering Matlab?


About OFDM & Toeplitz matrix

Started by ericknightX in comp.dsp17 years ago 5 replies

hi all , Currently i am doing a project which is generate an OFDM signal by using matlab code, but meanwhile i am not understand what is...

hi all , Currently i am doing a project which is generate an OFDM signal by using matlab code, but meanwhile i am not understand what is Toeplitz matrix. By using Matlab , I have generated an 64 Qam signal with 1024 symbol (parallel form) & i have also IFFT these signal & add the cyclic prefix (which is quarter of the transmit ed symbol) on it. For my understanding , i should let these ...


IIR Filter Funktion with DSP5416

Started by Eugene in comp.dsp19 years ago 1 reply

Hello, thank you for the answer, for the function iir32(DATA *x, LDATA *h, DATA *r ...) should be the length of 'h' 5*nbiq. If I think...

Hello, thank you for the answer, for the function iir32(DATA *x, LDATA *h, DATA *r ...) should be the length of 'h' 5*nbiq. If I think right, so if the length of Filter is 8, the should be the length of 'h' 4*5=20 If I produce the coef. with Matlab, so I get the number of coefs 24. I can't devide this number with 5. What should I do? Or It isn't the coefs. what I get with matlab...


Errors in phase due to wrong alignment/post processing?

Started by Peter Mairhofer in comp.dsp10 years ago 5 replies

Hi, I hooked together a Vector Signal Generator (VSG) and a Vector Signal Analyzer (VSA). I create a complex signal "x" in MATLAB, sent it...

Hi, I hooked together a Vector Signal Generator (VSG) and a Vector Signal Analyzer (VSA). I create a complex signal "x" in MATLAB, sent it to the VSG which does I/Q modulation to RF (> 1GHz). The VSG demodulates it and I read it back into MATLAB as variable "y". I align both signals by their mean and normalize them to their standard deviation. When I compare the magnitude spectrum,


Question: Autocorrelation of a sinusoidal signal:

Started by ellie in comp.dsp14 years ago 8 replies

Hi, I'm looking for a "for loop" code in MATLAB to obtain the normalized autocorrelation of a sinusoidal signal that is sampled at 1000Hz...

Hi, I'm looking for a "for loop" code in MATLAB to obtain the normalized autocorrelation of a sinusoidal signal that is sampled at 1000Hz and n(number of samples taken)=200. I also need to plot it. Input: x= sin((2.*pi.*n)./5); I have the following but I get error in MATLAB : size=1:length(n) for i=0:size for j=1:size-i rxx=sum(x3(j).*x3(j+i)); end end ...


MC-CDMA AND MC-DS-CDMA SIMULATION USING MATLAB

Started by BULDO in comp.dsp17 years ago 8 replies

HELLO EVERYBODY! I'M TRYING TO COMPARE MC-CDMA AND MC-DS-CDMA USING SINGLE USER AND MULTI-USER DETECTION TECHNIQUES IN TERMS OF BIT ERROR RATE...

HELLO EVERYBODY! I'M TRYING TO COMPARE MC-CDMA AND MC-DS-CDMA USING SINGLE USER AND MULTI-USER DETECTION TECHNIQUES IN TERMS OF BIT ERROR RATE AND SPECTRAL EFFICIENCY IN A MOBILE COMMUNICATION USING MATLAB.THAT IS USING DIRECT SEQUENCE SPREAD SPECTRUM(TRANSMITTING THE CHIPS OVER SEVERAL SUB-CARRIERS),PERFORMING THE MULTI-CARRIER MODULATION AND DEMODULATION USING IFFT AND FFT OPERATIONS, SEPA...


Duplicating coefficients generated by Matlab's firpm/remez function

Started by cford in comp.dsp19 years ago 11 replies

I am in the process of trying write C code to duplicate the output of the Matlab function firpm for a work project. I have already found the C...

I am in the process of trying write C code to duplicate the output of the Matlab function firpm for a work project. I have already found the C code written by Jake Janovetz which has been an extremely useful reference. However, due to the restrictive parameters of my project I am in need of being able to more fully reproduce the functionality of firpm. I need to be able to create C code that can t...


Rayleigh fading in OFDM

Started by persian_eagle in comp.dsp18 years ago 1 reply

Hello, I have maganged to simulate an OFDM system using Matlab. It works fine in AWGN channel and SNR vs BER curve matches the...

Hello, I have maganged to simulate an OFDM system using Matlab. It works fine in AWGN channel and SNR vs BER curve matches the theoretical one. But I have problem when I add Rayleigh to it (I get similar amount of BER for all SNR). I have used standard matlab functions to gerenate static flat fading: c=raylieghchan(); y = filter(c,ofdm_symbol); % the...


Onset Detection of Human Speech

Started by Polar in comp.dsp18 years ago 4 replies

Hello, I've pieced together a sound-localizer that is supposed to be capable of detecting the location (in terms of an azimuth angle) of...

Hello, I've pieced together a sound-localizer that is supposed to be capable of detecting the location (in terms of an azimuth angle) of human speech. The system, composed of two mics leading to a mixer that leads to a PC (running Audacity and MATLAB), theoretically works fine. It works perfect with signals I construct in MATLAB, but works surprisingly poorly with actual recordings. Rig...