Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [discrete-signals]

A discrete signal or discrete-time signal is a time series consisting of a sequence of quantities.

0
votes
1answer
21 views

GCC-PHAT (Generalized cross correlation) always peak at delay=0 on real audio signal

I have studied the GCC-PHAT algorithm to estimate TDOA on audio signals at 2 mics. Here is my MATLAB implementation: ...
0
votes
0answers
11 views

Problem with Spectral Correlation Function for cyclical signal analisis

I am using the autofam() function in Matlab for the Spectral Correlation Function (link: https://github.com/sayguh/MastersProject/blob/master/matlab/sandbox/autofam.m) for a BPSK modultated chirp ...
4
votes
2answers
3k views

GCC-PHAT (Generalized cross correlation MATLAB)

I've been trying to implement generalized cross correlation with a PHAT weighting function for a while now, and cannot get it to work. I have tried correlating using MATLAB's xcorr.m file, and it ...
0
votes
1answer
44 views

How to get a heartbeat signal from this data?

I am giving my first steps in data analysis, gathering/cleaning. To learn, I am trying to create a simple code that can detect heartbeats from color variations from the image coming from the camera ...
1
vote
1answer
37 views

Nyquist frequency , sampling distance

I have few questions I tried to solve regarding nyquist theorem, and I would like to see your opinion if I'm doing it correctly?(one I know the answer second one not sure). 1.Let $f(x)$ and $g(x)$ be ...
0
votes
2answers
76 views

Algorithms for detecting the difference between two signals

If I have two signals $X$ and $Y$, where $X$ is a clean signal and $Y$ is the same signal with linear white Gaussian noise and an amplitudes of $10^{-4}$. How could one use an algorithm to detect if ...
0
votes
0answers
33 views

Equivalence of ML and FFT peak finding for Single-Tone estimation

My understanding is Maximum Likelihood and FFT peak finding for a single tone produce the same results assuming the ML is restricted to the same frequencies as the FFT. I was wondering if there was ...
1
vote
2answers
66 views

Nyquist sampling

I know that if $f_\mathrm{m}$ is the "Nyquist frequency" (max frequency) and $f_\mathrm{s}$ sampling rate then $f_\mathrm{s}>2f_\mathrm{m}$. Am I correct so far? I have a signal $x(t)$ with max ...
1
vote
2answers
35 views

Proof that first difference filter amplifies noise

I'm a bit befuddled by noise's effect on derivative filters. I've always 'known' that straightforward first difference derivative filters of discrete signals amplifies noise, but I'm struggling to ...
1
vote
0answers
28 views

Band Edge Filters

I am interested in using Band Edge Filters to do carrier frequency recovery but this is kind of secondary to my question which is: How do you build an FIR filter which isn't symmetric about the ...
1
vote
1answer
31 views

Difference between autocorrelations

M. H. Hayes calls in his book "Statistical digital signal processing" autocorrelation sequences $r[k]$. For optimal filters the desired autocorrelation has the index d -> $r_d[k]$. However, often ...
2
votes
1answer
37 views

Potential issues arising from too stable discretization

When numerically simulating a system, usually some kind of discretization is necessary, obtained by some kind of z-transform, such as, for instance, the bilinear transform $s\mapsto \frac{2}{\triangle ...
0
votes
2answers
94 views

fourier transform of smart-phone accelerometer in matlab

I'm new to matlab. I want to process my smart-phone accelerometer data in matlab. I know Matlab let's you connect your phone via USB cable to see accelerometer data in realtime. But according to some ...
0
votes
2answers
39 views

Correlation between 2 signals of uneven dimensions

As a part of my work, I am trying to correlate the audio signal in a video with the pixels of each frame. The steps I follow are: Audio sampling rate and frame rate of the video are known. So, ...
1
vote
0answers
19 views

Why is my resampled signal cutoff when resampling with a windowed FIR filter in MATLAB?

I have an exercise to write a function which upsamples or downsamples a signal by a factor of F (integer) using a FIR filter windowed with a Kaiser window function. Exercise I had last week included ...
0
votes
0answers
21 views

Why are patterns repeated in the frequency-power graph of a periodic signal?

The original question was posted here. I have a signal, which I'd like to treat as a non-continuous function now, let it be $signal(t)$. It looks like this: Zoomed in a bit: I create a Lomb-Scargle ...
0
votes
1answer
24 views

Active Noise cancellation for non periodic signals

I observed that the coded algorithm for active noise cancellation is not able to cancel some of the signals like a human voice. Is there any solution for this? Can we really cancel non-periodic ...
2
votes
1answer
21 views

Error due to downsampling an image

I have two images $I_1$ and $I_2$ suppose $I_2 = downscale(I_1)$, so for example if $I_1$ has resolution 1024x1024 $I_2$ could be 512x512. How can I measure how much quality I've lost during this ...
0
votes
1answer
29 views

periodicity of constant discrete time signals

are constant discrete time signals periodic? example \begin{equation} e^{i10\pi n} \end{equation} my proffesor says that this signal is aperiodic, in the discrete sense. but it seems wrong, because ...
1
vote
2answers
74 views

Signals - question due to sampling

I don't have an idea how to start it. Help pls :) $$m = z(t) + \frac{\operatorname{Sa}(t-T)}{4}$$ We have some signal $z(t)=\left(\operatorname{Sa}(\frac{t}{T})\right)^2$. How often the m signal ...
0
votes
0answers
9 views

Correct way to calibrate RX into a measuring receiver

While playing with my SDR (Software Defined Radio) Board, I was interested in performing a TX output power table at different center frequencies and TX antenna gains. I have an RF frequency generator....
0
votes
0answers
23 views

Power Spectral Density of discrete White Gaussian Noise defined with variance and sampling interval

From Creighton and Anderson Chapter 7 on Gravitational Wave data analysis: Please explain where the delta t and the limit came from in this derivation.
0
votes
1answer
44 views

Distortion in sound after multiplying frequency spectrum by constant

I make a simple sound equalizer that operates in frequency domain and lets user to adjust frequencies in sound by using 4 sliders. The first one responsible for 0 - 5kHz, the fourth one for 15-20kHz. ...
1
vote
3answers
265 views

Measure Sine Wave Amplitude from ADC Signal

Question I'm trying to do some DSP that I have never done before and a nudge into the right direction would come in handy. The context is replication of this project. The system architecture is the ...
0
votes
1answer
14 views

how is this method of proving shift invariance correct

I got this answer from here. But i don't know how this method is correct. Until now to prove shift invariance what i did was : step 1: delay output and write it in terms of input. step 2: delay input ...
1
vote
1answer
68 views

Can Temperature data be predicted using adaptive filter using LMS algorithm?

I am working on a project which requires me to implement adaptive filter as a predictor. I have just started on adaptive filter and I intend to use least mean square algorithm for weight adjustment. ...
0
votes
1answer
18 views

What's wrong with this Whittaker-Shannon-Kotel’nikov interpolation implementation?

I tried to implement Whittaker-Shannon-Kotel’nikov interpolation formula but I get unexpected results: the reconstructed signal lags with respect to the original. I know that I can not expect a ...
0
votes
1answer
57 views

Linear Combination of Two Signals

In my signal processing class I have some basic tasks working with sinus signals in Matlab. I have two sinusoidal signals with 1kHz and 3kHz and sampling rate of 16kHz. The next task says 'Create a ...
0
votes
1answer
41 views

Cramér-Rao lower bound

I have been trying to implement the Cramér-Rao lower bound from the paper - A reference-free time difference of arrival source localization using a passive sensor array (eq. 6 and eq. 7). $$ \...
0
votes
0answers
18 views

Is it customary to use the period as coefficient when sampling the impulse response?

I have an analog, continuous impulse response $$h_a(t)=u(t)\cdot\sum_{n=1}^4A_ne^{s_nt}$$, and by sampling it with the usual method I get $$h[n]=\Delta th_a(n\Delta t).$$ Now, that $\Delta t$ is a bit ...
3
votes
1answer
2k views

Implementing Frequency Domain Convolution in MATLAB (Convolution Theorem)

I'm trying to prove convolution in time domain is same as multiplication in frequency domain but I'm not getting the same answer in matlab. Here is the code:
0
votes
1answer
33 views

Sampling - Higher order harmonics

I have been studying about the sampling theorem and it seems that even though we sample at a frequency with the nyquist criterion, the harmonics (due to sampling process) remain within the nyquist ...
0
votes
1answer
54 views

Proof of $E[y(n)]=E[x(n)] \, \sum h(k)$

If $h(n)$ is the impulse response of the discrete LTI system, $x(n)$ is the white noise process with variance $\sigma_x^2$ and $y(n)$ is the output, prove that $$\mu_y = \mu_x \, \sum_{k=0}^\...
0
votes
1answer
45 views

Difference between the DTFT and DFT [duplicate]

I know this question has been asked before. It is, however, so confusing, that I'd like to give this another try: I have come across the following 2 definitions of the DTFT: So, the first line is the ...
0
votes
0answers
26 views

How to make function in time domain after fft fit with the corresponding function in frequency domain?

For example, I want to use fft to transform the simple function exp(-x.^2) defined in time domain. And the corresponding funciton in frequency domain is sqrt(pi).*exp(-k.^2/4). And I use the upper ...
0
votes
0answers
15 views

How does discrete spectral moment relate to continuous spectral moment?

It is said in discrete/digital signal processing that $r$th spectral moment of signal $x[n]$ is defined as: $$\sum_{n=-\infty}^{\infty}n^r x[n]$$ But how does this relate to usual continuous $r$th ...
10
votes
6answers
4k views

Is there an algorithm to compute the phase for a single frequecy?

If you have a function $f(t)=A \cdot \sin(\omega t+\phi)$, and reference sin wave $\sin(\omega x)$ what would be a fast algorithm to compute $\phi$? I was looking at Goertzel algorithm, but it doesn'...
0
votes
0answers
15 views

Use 2D FFT to replace 2D Discrete Fourier Transform (MATLAB)

I met a problem. I ran a code to implement the 2D discrete Fourier Transform, here is the code: ...
-1
votes
1answer
25 views

integral filter

Assume we have a time domain signal: s(i), i=1:N. To apply a derivative filter to it, i.e. D*s, where ...
0
votes
1answer
59 views

transfer function and 'causal' signal - evaluate transfer function or use z-transform of input?

From my studying difference equations and transfer functions, I understand that when a complex exponential input $x[n]=z_1^n$ is applied to an LTI system with transfer function $H(z)$, determining the ...
0
votes
1answer
23 views

Optimising an input signal for a system to minimise distortion of output signal

I have a discrete time-series signal which I am able to process before passing it through a system which distorts said signal. This system cannot be altered and is non-linear, but a signal can be ...
6
votes
2answers
5k views

First order low pass filter

I am trying to better understand the first-order low pass filter: Summary: Per wikipedia, a first order low pass filter yields the following in discrete time: $$ \frac{Y(s)}{U(s)}= \frac{\omega_{c}}...
0
votes
2answers
264 views

Discrete Fourier transform

When you perform a discrete Fourier transform (DFT), and compute the DFT coefficients, $c_k$ and $X(K)$, what do these values tell us about the signal it came from?
2
votes
1answer
109 views

How does a digital filter work?

To introduce my situation: I'm developing a digital synthesizer in a form of a C++ library, working with low level APIs like WASAPI, ASIO, ALSA etc. It's probably not very practical and I'm mostly "...
6
votes
7answers
423 views

Intuition behind commutativity of convolution in LTI systems

Why is convolution commutative, as it seems to treat two signals in a different way in an LTI system? If you imagine $y[n] = x[n] \star h[n]$ with $x[n]$ being an input signal and $h[n]$ being the ...
0
votes
0answers
27 views

Adaptive frequency discovery of binary signal

First of all, I'm not a signal processing expert. Actually, I'm trying to benefit from some concepts of signal processing theory in my computer science research. My problem is that, I have to find ...
7
votes
3answers
250 views

Reducing noise from the same frequency band as signal

Sorry for the vague question (as I'm not even quite sure what I want to do is possible), just asking for some general direction to take my research. For a brief description, my signal resembles ...
0
votes
1answer
45 views

Meaning of a formula about transient frequency bins

I'm trying to understand the following formula in this paper: Sadly, the paper does not define most of the symbols it is using, so my guesses so far are: $T_{tr}$ refers to the sampling interval i....
0
votes
1answer
101 views

Compute time constant of discrete exponential decay pulses

I want to retrieve (within a FPGA) the time constant $\tau$ of incoming pulses of the form $$x[n]=Ae^{-n/\tau}u[n]+C$$ In addition to the offset, inputs are subject to noise. To measure the integral ...
1
vote
1answer
293 views

Cramer Rao Lower Bound for Cross Correlation (Time Shift Estimation)

UPDATE 2 Okay, I think I understand now why the defined CRLB is not applying to my use case. In my use case, we have very high SNR, and the the first signal $x_1$ is always the same. So the classical ...