Stack Exchange Network

Stack Exchange network consists of 175 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 [sampling]

In signal processing, sampling is the reduction of a continuous-domain signal to a discrete-domain signal.

1
vote
2answers
57 views

Multiple different length Windows for high resolution realtime FFT

I am looking at trying to achieve a 'realtime' (as quick as possible to acquire, process and present data) FFT application to analyse audio. I have setup my app to acquire a set of samples, apply a ...
0
votes
1answer
544 views

frequency domain zero padding in OFDM

I have a matlab code for OFDM system, in this code the auther added a zero padded subcarriers before the IFFT stage, in the middle of the raws, and added zero padded guard interval after IFFT, my ...
0
votes
0answers
10 views

Getting SNR of reconstructed signal in MATLAB

I am trying to run code to compare the efficiency of various basic sampling methods such as ideal sampling, natural sampling and so on. I want to then use average power to see how accurate the ...
0
votes
4answers
45 views

What's the advantage/disadvantage of oversampling followed by decimation, verses sampling at the correct rate to begin with?

I read somewhere that oversampling somehow reduces sampling noise? How to quantify the reduction in noise? and why would it reduce noise if you are decimating the oversampled signal. What's the ...
0
votes
0answers
11 views

Determining timing error for sampling

I am writing a small program for sampling a series of sensors on an Arduino. The sampling process is not 100% perfect, depending on how many sensors I am reading, the actual difference between two ...
0
votes
1answer
174 views

Phantom harmonics when using cosine windows why do they appear and how to avoid them?

Given an L order cosine window, it is possible to show that the width of the main lobe is given by: $$\omega_w = \frac{2 \pi L}{(2N+1)}$$ Where $L$ is the order of the window, $N$ is the maximum ...
2
votes
3answers
1k views

Aquila DSP C++ Library - Wave file FFT analog frequency off by factor of 4?

I'm working with the Aquila C++ DSP library. I'm computing the FFT of a wave file (16 bit depth, single channel, 44100 sample rate). I am using a window size of 16384 to calculate the FFT spectrum. I'...
6
votes
3answers
534 views

Compress a signal by storing signal diff instead of actual samples - is there such a thing?

I am working with EMG signals sampled at 2kHz and 16 bits, and noticed that they "look smooth", that is, the signals are differentiable, and if I apply a "diff" function (...
1
vote
1answer
102 views

Continuous wavelet transform subsampling at lower frequencies?

I am not completely confident in my understanding of wavelet theory, but since I am currently in the process of creating a CWT scalogram tool, I have to ask: Is there a theorem allowing us to ...
0
votes
1answer
23 views

Cancelling out known signal with sampling offset

I would like to cancel out a known audio signal at my receiver. Specifically at my transmitter I am playing a song, and at my receiver I am recording it. Both transmit and receive sampling rate is 44....
0
votes
2answers
88 views

How is a signal changed after sampling?

I can't understand sampling signal mathematically. for example $x(t) = 2\cos(100\pi t) + \cos(300\pi t)$ and I know I should use sampling frequency $300\textrm{Hz}$ to sample this signal. and after ...
0
votes
0answers
12 views

Range of updated/new time axis after upsampling?

I am reading the book "Signals and systems laboratory with MATLAB" by Alex Palamides and I am reading system properties on pg 154 of the book but I am confused about an example shown in attached photo....
1
vote
1answer
87 views

about sampling frequency

I am trying to make a DFT on a signal with frequency f=50 MHz main component plus some noise. As far as I know if I sample it at F=100MHz I should be able to get a proper plot of the DFT since F=2f ...
4
votes
3answers
2k views

Does oversampling improve processing gain?

I am used to Time-Bandwidth product describing the processing gain or improvement in SNR for a spread spectrum signal using a matched filter. One could view the bandwidth $B$ as the sample rate (...
0
votes
0answers
16 views

relation between Nyquist sampling theory and regression

Regression is mainly about estimating a function when only a finite number of samples of the function are available. Theories usually care about asymptotic performance as the number of samples tends ...
1
vote
2answers
33 views

What exactly is captured in a Sample of the Nyquist-Theorem variety?

I'm new to DSP and was thinking of sampling in the traditional music creation way, in that you capture a sound and play it back, warp it, etc., but when I thought about the Nyquist theorem, I realized ...
4
votes
3answers
254 views

Precise 5th and 7th harmonics of a sampled sine wave

Does anyone know in decibels (to 1/100th of a dB) what the theoretical 3rd, 5th and 7th harmonic of a 0dB fs 24-bit (i.e. full-level; 0dB = -8,388,607 to 8,388,607) sampled sine wave without dither ...
2
votes
0answers
28 views

Intuitively, why is the comb function the sampling function?

The comb function can be used to sample a continuous signal. The comb function is defined as follows $$ C_T(t) = \sum_{k=-\infty}^{\infty} \delta(t - kT) $$ where $\delta$ is the Dirac function, ...
0
votes
2answers
47 views

Alignment of 2 Set of Samples from Different Sensors

If we measure the heart rate of a subject with two different devices, which have big different sampling rates then how we can compare their outcomes. For instance, one of the devices has the sampling ...
3
votes
1answer
64 views

Understading sampling theorem and aliasing

A real-valued analog signal with a flat spectrum between f = 0 Hz, and fmax is sampled at a sampling frequency fs = 24 kHz. The sampled signal is then processed with an ideal lowpass filter with ...
1
vote
2answers
57 views

Ideal sampling using sinc funcion

Let $ x(t) $ be a bandwidth limited signal such as $ \forall |\omega|>\frac{\pi}{T} : X^F(\omega)=0 $ while $ X^F(\omega)$ is the signal's Fourier Transform. Let us denote $y[n]=\int_{-\infty}^{\...
5
votes
2answers
5k views

Sampling Theorem and Dirac Comb

I am reading "The Scientist and Engineer's Guide to Digital Signal Processing" and trying to understand Figure 3.5 below which is about the sampling theorem and aliasing. I do not understand the ...
2
votes
1answer
3k views

Spectrum of a Signal Going Through a Zero Order Hold Sampling System

What does the spectrum of a sampled signal look like if one uses a zero-order-hold? There is some information in: Sampling theorem and Dirac comb, but I am wondering, how to apply this in practice. ...
1
vote
2answers
45 views

What Does 'Zero Order Hold' and 'First Order Hold' Mean?

While studying the Image Magnification in spatial domain, I have come across this definition of Image Magnification by Replication: Replication is a zero order hold where each pixel along a scan ...
0
votes
2answers
43 views

How to select the sampling frequency when the input signal frequency is not known

I am trying to observe the noise produced by UPS present in our lab, under no load (a normal running condition when its power is on). As I don't know its frequency range, I have randomly chosen 4 ...
1
vote
2answers
10k views

What is the difference between cubic interpolation and cubic “Spline” interpolation?. How to use it for upsampling purpose?

After considering a couple of advices and suggestions for upsampling techniques here, I finally converged to use the cubic interpolation technique to estimate the voltage values corresponding to ...
2
votes
2answers
52 views

Periodicity of sum of discrete signals

In my lecture slides for school and from this website here "The sum $z[n] = x[n] + y[n]$ of periodic signals $x[n]$ with fundamental period $N1$, and $y[n]$ with fundamental period $N2$ is periodic ...
0
votes
0answers
20 views

histogram bin size vs. data sampling rate

I have a set of numerical signals that give me a set of zeros calculated based on some numerical procedure. I make a histogram of those zeros. Here, a following problem arises: If the histogram ...
8
votes
6answers
20k views

Why is telephone audio sampled at 8 kHz?

When did we decide to sample telephone at $8$ kHz? Has this always been the case? Why did we do that? Is it because higher bit rates can't be transferred as quick? And do these reasons still count? ...
1
vote
1answer
58 views

Relationship between the autocorrelations of X(t) and X(nt)

Defining: $X(t)$ WSS random process with autocorrelation function $R_{X}(\tau) = \mathbb{E}[X(t)X(t+\tau)]$. $Y[n] = X(nT)$ (sampling of $X$ at a rate $\frac1T$) with autocorrelation function $R_Y(\...
0
votes
1answer
47 views

Sample-rate, filtering, digital-filtering and aliasing

I am strugling with a question that I hope someone can help me with. I am recording single molecule events which I detect is picoampere square deflections. I wish to use as gentle low-pass bessel ...
0
votes
1answer
381 views

Why doesn't the sampling theorem work in this case?

In this example, under "Discussion", we can see that the Nyquist sample rate will result in samples with the value zero only. But why is this? I thought the sampling theorem said that if you sample ...
0
votes
0answers
14 views

Looking for a analytical formula to compute the central frequency of a signal analyzed by a discrete wavelet at a given scale

I am reading this paper by Han et al. (2014). In this article, the authors extract detailed information from geomagnetic data sampled at 1Hz using a daubechies 5 (db5) wavelet: they reconstruct the ...
5
votes
4answers
803 views

Sampling Theorem illustration

Can someone please explain the illustration (figure 1.19) at the bottom of this image? It looks like there are four sampling points but I don't understand what the different curves represent. Actually ...
0
votes
1answer
53 views

Fourier like spectral analysis with uneven intervals and redesigned DFT matrix

I intended to use a discrete Fourier transform (DFT) on a time series sampled at uneven intervals. What I did was to calculate a DFT matrix where the elements are the values at the uneven locations ...
0
votes
1answer
30 views

Amplitude Response at greater than half the sampling frequency

I am hoping to clear up some confusion I have. In a lab I am taking, we analyzed the amplitude response of a simple system. We found that as we increased the input signal frequency to greater than ...
0
votes
0answers
28 views

Minimum sample frequency that allows reconstruction of information signal but VIOLATES Nyquist?

Say in the frequency spectrum, you have an information signal between (-100, 100) Hz, and a noise signal between (-700, -500) and between (500, 700) Hz. What is the minimum possible sample frequency ...
3
votes
1answer
88 views

Definition of DSP Terms

can someone define/explain briefly (or with some detail-> up to you) the following terms: Block Processing? and what are the differences between it and Sample Processing? (removed) What is a 3D ...
3
votes
3answers
1k views

What is the underlying concept behind Bandpass sampling?

Can you suggest me some books/webpages on Bandpass sampling? I undestand that if the signal is restricted between $f_L$ and $f_H$, then the minimum bandwidth required is $2(f_H - f_L)$. But say the ...
1
vote
1answer
46 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 ...
1
vote
2answers
70 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
446 views

Nyquist frequency and DC

Im studying the DSP book by Steven W. Smith. On page 41 he covers the Nyquist frequency. He makes up an example by writing the following. ... consider an analog signal composed of frequencies ...
0
votes
0answers
27 views

What is wrong with my PSD computation?

I'm trying to calibrate the RX of my SDR Board to become a measuring receiver. I.e, by connecting it to a known source of power (in my case, a frequency generator), at a fixed frequency, I'm trying to ...
1
vote
1answer
16 views

Sampling Frequency and Spectral Regrowth

Sampling a cosine wave of 10 Hz at Fs = 64 and number of samples Ns = 256 I setup my time vector for the cosine wave as n=(0:Ns-1)*(1/Fs) If I change the sampling frequency from 64 to 64.0005 I get ...
1
vote
0answers
24 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 ...
2
votes
1answer
2k views

Expression to represent alternating pulse train?

I have a question regarding an alternating pulse train signal, $p(t)$, and a system which looks like this: Immediately, I'm supposed to be able to extrapolate that $$ P_t = P_1(t)-P_1(t-\Delta) $$ ...
0
votes
1answer
36 views

What does the frequency band mean when it comes to finding aliases?

The time signal which i'm trying to find the aliases for is: $$x:{\mathbb R}\rightarrow {\mathbb R}\\\ x(t)=\cos(50t) +2\cos(70t).$$ If the sample period is $T_s = \frac{\pi}{60}$ then according ...
0
votes
2answers
28 views

Frequency Resolution Problem

Im trying to tackle the following problem while still not having a firm idea on what "frequency resolution" means : Suppose we sample a continuous time signal with sampling period Ts = 1/2000, and ...
1
vote
0answers
33 views

How to obtain the steady state response of the sampled periodic signal data?

Below the green plot Vin is 5Hz sine voltage signal from a function generator output sampled at 12kHz sampling rate: The blue plot Vout is the processed/filtered data by using the following code in ...
0
votes
1answer
78 views

Are resolution increase and noise reduction from oversampling mutually exclusive?

Oversampling a signal means sampling it with a significantly higher sampling frequency than the Nyquist rate. As far as I know, there are three advantages: Easier design of anti alias filter Increase ...